Package com.jbstrap.ui.components.charts
Interface MultiSeriesChart<T extends SeriesBasedChart<?>,D extends Series>
- Type Parameters:
T- Chart typeD- 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
-
Method Details
-
addSeries
Adds a new series to the chart.- Parameters:
series- Series instance to be added- Returns:
- Chart
-
getSeries
Gets a previously added series by its name.- Parameters:
title- Series name- Returns:
- The specified series instance or
nullif there is no instance of the specified series on the chart
-
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.
-