Interface MultiSeriesChart<T extends SeriesBasedChart<?>,D extends Series>

Type Parameters:
T - Chart type
D - Chart series type
All Known Implementing Classes:
AreaChart, BarChart, BubbleChart, DotChart, GaugeChart, HorizontalBarChart, HorizontalStackedBarChart, LineChart, StackedAreaChart, StackedBarChart

public interface MultiSeriesChart<T extends SeriesBasedChart<?>,D extends Series>
Charts that implement this interface can have multiple series.
Since:
4.0
Author:
JBStrap
  • Method Summary

    Modifier and Type
    Method
    Description
    addSeries(Series series)
    Adds a new series to the chart.
    default D
    Gets a previously added series by its name.
    default List<String>
    Gets the names of all previously added series.
  • Method Details

    • addSeries

      T addSeries(Series series)
      Adds a new series to the chart.
      Parameters:
      series - Series instance to be added
      Returns:
      Chart
    • getSeries

      default D getSeries(String title)
      Gets a previously added series by its name.
      Parameters:
      title - Series name
      Returns:
      The specified series instance or null if there is no instance of the specified series on the chart
    • getSeriesNames

      default List<String> getSeriesNames()
      Gets the names of all previously added series.
      Returns:
      List containing the names of previously added series If there are no series added to the chart, the return value is an empty list.