Class TestForIssue465

java.lang.Object
org.knowm.xchart.standalone.issues.TestForIssue465

public class TestForIssue465 extends Object
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 Details

    • TestForIssue465

      public TestForIssue465()
  • Method Details

    • main

      public static void main(String[] args)
    • getChart

      public CategoryChart getChart()
      The stacked area chart, for headless/automated callers.
    • getCharts

      public static List<CategoryChart> getCharts()
      The stacked bar and stacked area charts, shown side by side.