Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.2
-
Component/s: None
-
Labels:None
-
Environment:IF 3.x
Description
If there is no explicit default configuration series for the Chart, the default chart type is inferred from the type of the first data series and rendered by creating a new config series instance of that type and using it as an implied default config.
However, this code attempted to access the series superclass (as is required when declaring these instances using shorthand, because shorthand creates class nested subclasses when used), and when not using shorthand this would access the abstract ChartSeries class which cannot be instantiated, causing an error.
However, this code attempted to access the series superclass (as is required when declaring these instances using shorthand, because shorthand creates class nested subclasses when used), and when not using shorthand this would access the abstract ChartSeries class which cannot be instantiated, causing an error.
A sample of the shorthand in question is:
List<ChartSeries> series = new ArrayList() {{
add(new CartesianSeries() {{
....
}});
}}