com.aspose.words

Class ChartSeriesCollection

  • java.lang.Object
    • com.aspose.words.ChartSeriesCollection
  • All Implemented Interfaces:
    java.lang.Iterable
    public class ChartSeriesCollection 
    extends java.lang.Object

Represents collection of a ChartSeries.

Property Getters/Setters Summary
intgetCount()
Returns the number of ChartSeries in this collection.
ChartSeriesget(int index)
Returns a ChartSeries at the specified index.
 
Method Summary
ChartSeriesadd(java.lang.String seriesName, double[] xValues, double[] yValues)
Adds new ChartSeries to this collection. Use this method to add series to any type of Scatter charts.
ChartSeriesadd(java.lang.String seriesName, double[] xValues, double[] yValues, double[] bubbleSizes)
Adds new ChartSeries to this collection. Use this method to add series to any type of Bubble charts.
ChartSeriesadd(java.lang.String seriesName, java.lang.String[] categories, double[] values)
Adds new ChartSeries to this collection. Use this method to add series to any type of Bar, Column, Line and Surface charts.
ChartSeriesadd(java.lang.String seriesName, java.util.Date[] dates, double[] values)
Adds new ChartSeries to this collection. Use this method to add series to any type of Area, Radar and Stock charts.
voidclear()
Removes all ChartSeries from this collection.
java.util.Iterator<ChartSeries>iterator()
Returns an enumerator object.
voidremoveAt(int index)
Removes a ChartSeries at the specified index.
 

    • Property Getters/Setters Detail

      • getCount

        public int getCount()
        
        Returns the number of ChartSeries in this collection.
      • get

        public ChartSeries get(int index)
        
        Returns a ChartSeries at the specified index.

        The index is zero-based.

        Negative indexes are allowed and indicate access from the back of the collection. For example -1 means the last item, -2 means the second before last and so on.

        If index is greater than or equal to the number of items in the list, this returns a null reference.

        If index is negative and its absolute value is greater than the number of items in the list, this returns a null reference.

        Parameters:
        index - An index into the collection.
    • Method Detail

      • add

        public ChartSeries add(java.lang.String seriesName, double[] xValues, double[] yValues)
        Adds new ChartSeries to this collection. Use this method to add series to any type of Scatter charts.
        Returns:
        Recently added ChartSeries object.
      • add

        public ChartSeries add(java.lang.String seriesName, double[] xValues, double[] yValues, double[] bubbleSizes)
        Adds new ChartSeries to this collection. Use this method to add series to any type of Bubble charts.
        Returns:
        Recently added ChartSeries object.
      • add

        public ChartSeries add(java.lang.String seriesName, java.lang.String[] categories, double[] values)
        Adds new ChartSeries to this collection. Use this method to add series to any type of Bar, Column, Line and Surface charts.
        Returns:
        Recently added ChartSeries object.
      • add

        public ChartSeries add(java.lang.String seriesName, java.util.Date[] dates, double[] values)
        Adds new ChartSeries to this collection. Use this method to add series to any type of Area, Radar and Stock charts.
      • clear

        public void clear()
        Removes all ChartSeries from this collection.
      • iterator

        public java.util.Iterator<ChartSeries> iterator()
        Returns an enumerator object.
      • removeAt

        public void removeAt(int index)
        Removes a ChartSeries at the specified index.
        Parameters:
        index - The zero-based index of the ChartSeries to remove.