public class MultipleCategorySeries
- Object
- MultipleCategorySeries
A series for the multiple category charts like the doughnut.
Constructors
public MultipleCategorySeries(String title) | Builds a new category series. |
Methods
public void add(String[] titles, double[] values) | Adds a new value to the series |
public void add(String category, String[] titles, double[] values) | Adds a new value to the series. |
public void remove(int index) | Removes an existing value from the series. |
public void clear() | Removes all the existing values from the series. |
public double[] getValues(int index) | Returns the values at the specified index. |
public String getCategory(int index) | Returns the category name at the specified index. |
public int getCategoriesCount() | Returns the categories count. |
public int getItemCount(int index) | Returns the series item count. |
public String[] getTitles(int index) | Returns the series titles. |
public XYSeries toXYSeries() | Transforms the category series to an XY series. |
Inherited methods
Constructor details
MultipleCategorySeries
public MultipleCategorySeries(String title)Builds a new category series.
Parameters
titleString- the series title
Method details
add
public void add(String[] titles, double[] values)Adds a new value to the series
Parameters
titlesString[]- the titles to be used as labels
valuesdouble[]- the new value
add
public void add(String category, String[] titles, double[] values)Adds a new value to the series.
Parameters
categoryString- the category name
titlesString[]- the titles to be used as labels
valuesdouble[]- the new value
remove
public void remove(int index)Removes an existing value from the series.
Parameters
indexint- the index in the series of the value to remove
clear
public void clear()Removes all the existing values from the series.
getValues
public double[] getValues(int index)Returns the values at the specified index.
Parameters
indexint- the index
Returns
the value at the index
getCategory
public String getCategory(int index)Returns the category name at the specified index.
Parameters
indexint- the index
Returns
the category name at the index
getCategoriesCount
public int getCategoriesCount()Returns the categories count.
Returns
the categories count
getItemCount
public int getItemCount(int index)Returns the series item count.
Parameters
indexint- the index
Returns
the series item count
getTitles
public String[] getTitles(int index)Returns the series titles.
Parameters
indexint- the index
Returns
the series titles
toXYSeries
public XYSeries toXYSeries()Transforms the category series to an XY series.
Returns
the XY series