Class TestForIssue465
java.lang.Object
org.knowm.xchart.standalone.issues.TestForIssue465
Issue #465 — Stacked Area chart.
The CategoryChart stacking engine now supports the CategorySeries.CategorySeriesRenderStyle.Area
render style, so a stacked area chart works whenever the X-axis is categorical. This demo shows
the same dataset rendered as a stacked bar chart and a stacked area chart side by side, so the
area tops line up with the bar tops.
The data mirrors the AnyChart "stacked area" example the reporter linked. AnyChart's rows are
[category, s1, s2, s3]; here they are transposed into one series per column.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChart()The stacked area chart, for headless/automated callers.static List<CategoryChart> The stacked bar and stacked area charts, shown side by side.static void
-
Constructor Details
-
TestForIssue465
public TestForIssue465()
-
-
Method Details
-
main
-
getChart
The stacked area chart, for headless/automated callers. -
getCharts
The stacked bar and stacked area charts, shown side by side.
-