com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IChartDataPointCollection

    • Method Detail

      • get_Item

        IChartDataPoint get_Item(int index)

        Returns the series data point by index.

      • get_Item

        int get_Item(IChartDataPoint pt)

        Return index of data point in this collection.

      • getDataSourceTypeForXValues

        int getDataSourceTypeForXValues()

        Specifies whether AsCell or AsLiteralString or AsLiteralDouble property is actual in data points XValue property object. In other words it specifies the type of value of ChartDataPointEx.XValue.Data property. Read/write DataSourceType.

      • setDataSourceTypeForXValues

        void setDataSourceTypeForXValues(int value)

        Specifies whether AsCell or AsLiteralString or AsLiteralDouble property is actual in data points XValue property object. In other words it specifies the type of value of ChartDataPointEx.XValue.Data property. Read/write DataSourceType.

      • getDataSourceTypeForYValues

        int getDataSourceTypeForYValues()

        Specifies whether AsCell or AsLiteralString or AsLiteralDouble property is actual in data points YValue property object. In other words it specifies the type of value of ChartDataPointEx.YValue.Data property. Read/write DataSourceType.

      • setDataSourceTypeForYValues

        void setDataSourceTypeForYValues(int value)

        Specifies whether AsCell or AsLiteralString or AsLiteralDouble property is actual in data points YValue property object. In other words it specifies the type of value of ChartDataPointEx.YValue.Data property. Read/write DataSourceType.

      • getDataSourceTypeForBubbleSizes

        int getDataSourceTypeForBubbleSizes()

        Specifies whether AsCell or AsLiteralString or AsLiteralDouble property is actual in data points BubbleSize property object. In other words it specifies the type of value of ChartDataPointEx.BubbleSize.Data property. Read/write DataSourceType.

      • setDataSourceTypeForBubbleSizes

        void setDataSourceTypeForBubbleSizes(int value)

        Specifies whether AsCell or AsLiteralString or AsLiteralDouble property is actual in data points BubbleSize property object. In other words it specifies the type of value of ChartDataPointEx.BubbleSize.Data property. Read/write DataSourceType.

      • getDataSourceTypeForValues

        int getDataSourceTypeForValues()

        Specifies whether AsCell or AsLiteralString or AsLiteralDouble property is actual in data points Value property object. In other words it specifies the type of value of ChartDataPoint.Value.Data property. Read/write DataSourceType.

      • setDataSourceTypeForValues

        void setDataSourceTypeForValues(int value)

        Specifies whether AsCell or AsLiteralString or AsLiteralDouble property is actual in data points Value property object. In other words it specifies the type of value of ChartDataPoint.Value.Data property. Read/write DataSourceType.

      • getOrCreateDataPointByIdx

        IChartDataPoint getOrCreateDataPointByIdx(long index)

        If collection already contains data point with index index then returns this data point. If collection doesn't contains data point with index index==N (when number of data points in this collection is less or equal then N) then adds deficient data points and returns last (which has requested index). For example, collection indexes are {0, 1, 2}, and requested index is 5. Then method adds deficient data points: {0, 1, 2, 3, 4, 5}. And returns data point with index 5.

        Parameters:
        index - Index.
        Returns:
        Returns data point with requested index.
      • addDataPointForStockSeries

        IChartDataPoint addDataPointForStockSeries(IChartDataCell value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Stock subtypes (see also ChartTypeCharacterizer.IsChartTypeStock(ChartType) method).

        Parameters:
        value - Data point Value.
        Returns:
        New data point.
      • addDataPointForStockSeries

        IChartDataPoint addDataPointForStockSeries(double value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Stock subtypes (see also ChartTypeCharacterizer.IsChartTypeStock(ChartType) method).

        Parameters:
        value - Data point Value.
        Returns:
        New data point.
      • addDataPointForLineSeries

        IChartDataPoint addDataPointForLineSeries(IChartDataCell value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Line subtypes (see also ChartTypeCharacterizer.IsChartTypeLine(ChartType) method).

        Parameters:
        value - Data point Value.
        Returns:
        New data point.
      • addDataPointForLineSeries

        IChartDataPoint addDataPointForLineSeries(double value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Line subtypes (see also ChartTypeCharacterizer.IsChartTypeLine(ChartType) method).

        Parameters:
        value - Data point Value.
        Returns:
        New data point.
      • addDataPointForScatterSeries

        IChartDataPoint addDataPointForScatterSeries(IChartDataCell xValue,
                                                     IChartDataCell yValue)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Scatter subtypes (see also ChartTypeCharacterizer.IsChartTypeScatter(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        Returns:
        New data point.
      • addDataPointForScatterSeries

        IChartDataPoint addDataPointForScatterSeries(double xValue,
                                                     IChartDataCell yValue)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Scatter subtypes (see also ChartTypeCharacterizer.IsChartTypeScatter(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        Returns:
        New data point.
      • addDataPointForScatterSeries

        IChartDataPoint addDataPointForScatterSeries(java.lang.String xValue,
                                                     IChartDataCell yValue)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Scatter subtypes (see also ChartTypeCharacterizer.IsChartTypeScatter(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        Returns:
        New data point.
      • addDataPointForScatterSeries

        IChartDataPoint addDataPointForScatterSeries(IChartDataCell xValue,
                                                     double yValue)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Scatter subtypes (see also ChartTypeCharacterizer.IsChartTypeScatter(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        Returns:
        New data point.
      • addDataPointForScatterSeries

        IChartDataPoint addDataPointForScatterSeries(double xValue,
                                                     double yValue)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Scatter subtypes (see also ChartTypeCharacterizer.IsChartTypeScatter(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        Returns:
        New data point.
      • addDataPointForScatterSeries

        IChartDataPoint addDataPointForScatterSeries(java.lang.String xValue,
                                                     double yValue)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Scatter subtypes (see also ChartTypeCharacterizer.IsChartTypeScatter(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        Returns:
        New data point.
      • addDataPointForRadarSeries

        IChartDataPoint addDataPointForRadarSeries(IChartDataCell value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Radar subtypes (see also ChartTypeCharacterizer.IsChartTypeRadar(ChartType) method).

        Parameters:
        value - Data point Value
        Returns:
        New data point.
      • addDataPointForRadarSeries

        IChartDataPoint addDataPointForRadarSeries(double value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Radar subtypes (see also ChartTypeCharacterizer.IsChartTypeRadar(ChartType) method).

        Parameters:
        value - Data point Value
        Returns:
        New data point.
      • addDataPointForBarSeries

        IChartDataPoint addDataPointForBarSeries(IChartDataCell value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Column or Bar subtypes (see also ChartTypeCharacterizer.IsChartTypeColumn(ChartType) and ChartTypeCharacterizer.IsChartTypeBar(ChartType) method).

        Parameters:
        value - Data point Value
        Returns:
        New data point.
      • addDataPointForBarSeries

        IChartDataPoint addDataPointForBarSeries(double value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Column or Bar subtypes (see also ChartTypeCharacterizer.IsChartTypeColumn(ChartType) and ChartTypeCharacterizer.IsChartTypeBar(ChartType) method).

        Parameters:
        value - Data point Value
        Returns:
        New data point.
      • addDataPointForAreaSeries

        IChartDataPoint addDataPointForAreaSeries(IChartDataCell value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Area subtypes (see also ChartTypeCharacterizer.IsChartTypeArea(ChartType) method).

        Parameters:
        value - Data point Value
        Returns:
        New data point.
      • addDataPointForAreaSeries

        IChartDataPoint addDataPointForAreaSeries(double value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Area subtypes (see also ChartTypeCharacterizer.IsChartTypeArea(ChartType) method).

        Parameters:
        value - Data point Value
        Returns:
        New data point.
      • addDataPointForPieSeries

        IChartDataPoint addDataPointForPieSeries(IChartDataCell value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Pie subtypes (see also ChartTypeCharacterizer.IsChartTypePie(ChartType) method).

        Parameters:
        value - Data point Value
        Returns:
        New data point.
      • addDataPointForPieSeries

        IChartDataPoint addDataPointForPieSeries(double value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Pie subtypes (see also ChartTypeCharacterizer.IsChartTypePie(ChartType) method).

        Parameters:
        value - Data point Value
        Returns:
        New data point.
      • addDataPointForDoughnutSeries

        IChartDataPoint addDataPointForDoughnutSeries(IChartDataCell value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Doughnut subtypes (see also ChartTypeCharacterizer.IsChartTypeDoughnut(ChartType) method).

        Parameters:
        value - Data point Value
        Returns:
        New data point.
      • addDataPointForDoughnutSeries

        IChartDataPoint addDataPointForDoughnutSeries(double value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Doughnut subtypes (see also ChartTypeCharacterizer.IsChartTypeDoughnut(ChartType) method).

        Parameters:
        value - Data point Value
        Returns:
        New data point.
      • addDataPointForBubbleSeries

        IChartDataPoint addDataPointForBubbleSeries(IChartDataCell xValue,
                                                    IChartDataCell yValue,
                                                    IChartDataCell bubbleSize)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Bubble subtypes (see also ChartTypeCharacterizer.IsChartTypeBubble(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        bubbleSize - Data point BubbleSize
        Returns:
        New data point.
      • addDataPointForBubbleSeries

        IChartDataPoint addDataPointForBubbleSeries(double xValue,
                                                    IChartDataCell yValue,
                                                    IChartDataCell bubbleSize)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Bubble subtypes (see also ChartTypeCharacterizer.IsChartTypeBubble(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        bubbleSize - Data point BubbleSize
        Returns:
        New data point.
      • addDataPointForBubbleSeries

        IChartDataPoint addDataPointForBubbleSeries(java.lang.String xValue,
                                                    IChartDataCell yValue,
                                                    IChartDataCell bubbleSize)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Bubble subtypes (see also ChartTypeCharacterizer.IsChartTypeBubble(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        bubbleSize - Data point BubbleSize
        Returns:
        New data point.
      • addDataPointForBubbleSeries

        IChartDataPoint addDataPointForBubbleSeries(IChartDataCell xValue,
                                                    double yValue,
                                                    IChartDataCell bubbleSize)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Bubble subtypes (see also ChartTypeCharacterizer.IsChartTypeBubble(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        bubbleSize - Data point BubbleSize
        Returns:
        New data point.
      • addDataPointForBubbleSeries

        IChartDataPoint addDataPointForBubbleSeries(double xValue,
                                                    double yValue,
                                                    IChartDataCell bubbleSize)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Bubble subtypes (see also ChartTypeCharacterizer.IsChartTypeBubble(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        bubbleSize - Data point BubbleSize
        Returns:
        New data point.
      • addDataPointForBubbleSeries

        IChartDataPoint addDataPointForBubbleSeries(java.lang.String xValue,
                                                    double yValue,
                                                    IChartDataCell bubbleSize)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Bubble subtypes (see also ChartTypeCharacterizer.IsChartTypeBubble(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        bubbleSize - Data point BubbleSize
        Returns:
        New data point.
      • addDataPointForBubbleSeries

        IChartDataPoint addDataPointForBubbleSeries(IChartDataCell xValue,
                                                    IChartDataCell yValue,
                                                    double bubbleSize)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Bubble subtypes (see also ChartTypeCharacterizer.IsChartTypeBubble(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        bubbleSize - Data point BubbleSize
        Returns:
        New data point.
      • addDataPointForBubbleSeries

        IChartDataPoint addDataPointForBubbleSeries(double xValue,
                                                    IChartDataCell yValue,
                                                    double bubbleSize)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Bubble subtypes (see also ChartTypeCharacterizer.IsChartTypeBubble(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        bubbleSize - Data point BubbleSize
        Returns:
        New data point.
      • addDataPointForBubbleSeries

        IChartDataPoint addDataPointForBubbleSeries(java.lang.String xValue,
                                                    IChartDataCell yValue,
                                                    double bubbleSize)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Bubble subtypes (see also ChartTypeCharacterizer.IsChartTypeBubble(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        bubbleSize - Data point BubbleSize
        Returns:
        New data point.
      • addDataPointForBubbleSeries

        IChartDataPoint addDataPointForBubbleSeries(IChartDataCell xValue,
                                                    double yValue,
                                                    double bubbleSize)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Bubble subtypes (see also ChartTypeCharacterizer.IsChartTypeBubble(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        bubbleSize - Data point BubbleSize
        Returns:
        New data point.
      • addDataPointForBubbleSeries

        IChartDataPoint addDataPointForBubbleSeries(double xValue,
                                                    double yValue,
                                                    double bubbleSize)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Bubble subtypes (see also ChartTypeCharacterizer.IsChartTypeBubble(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        bubbleSize - Data point BubbleSize
        Returns:
        New data point.
      • addDataPointForBubbleSeries

        IChartDataPoint addDataPointForBubbleSeries(java.lang.String xValue,
                                                    double yValue,
                                                    double bubbleSize)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Bubble subtypes (see also ChartTypeCharacterizer.IsChartTypeBubble(ChartType) method).

        Parameters:
        xValue - Data point XValue
        yValue - Data point YValue
        bubbleSize - Data point BubbleSize
        Returns:
        New data point.
      • addDataPointForSurfaceSeries

        IChartDataPoint addDataPointForSurfaceSeries(IChartDataCell value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Surface subtypes (see also ChartTypeCharacterizer.IsChartTypeSurface(ChartType) method).

        Parameters:
        value - Data point Value
        Returns:
        New data point.
      • addDataPointForSurfaceSeries

        IChartDataPoint addDataPointForSurfaceSeries(double value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chartType is one of Surface subtypes (see also ChartTypeCharacterizer.IsChartTypeSurface(ChartType) method).

        Parameters:
        value - Data point Value
        Returns:
        New data point.
      • addDataPointForSunburstSeries

        IChartDataPoint addDataPointForSunburstSeries(IChartDataCell sizeValue)

        Creates the new data point and adds it to the end of collection. Applicable for series which chart type is Sunburst.

        Parameters:
        sizeValue - Data point SizeValue
        Returns:
        New data point.
      • addDataPointForWaterfallSeries

        IChartDataPoint addDataPointForWaterfallSeries(IChartDataCell value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chart type is Waterfall.

        Parameters:
        value - Data point value
        Returns:
        New data point.
      • addDataPointForBoxAndWhiskerSeries

        IChartDataPoint addDataPointForBoxAndWhiskerSeries(IChartDataCell value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chart type is BoxAndWhisker.

        Parameters:
        value - Data point Value
        Returns:
        New data point.
      • addDataPointForTreemapSeries

        IChartDataPoint addDataPointForTreemapSeries(IChartDataCell sizeValue)

        Creates the new data point and adds it to the end of collection. Applicable for series which chart type is Treemap.

        Parameters:
        sizeValue - Data point SizeValue
        Returns:
        New data point.
      • addDataPointForHistogramSeries

        IChartDataPoint addDataPointForHistogramSeries(IChartDataCell value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chart type is Histogram.

        Parameters:
        value - Data point value
        Returns:
        New data point.
      • addDataPointForFunnelSeries

        IChartDataPoint addDataPointForFunnelSeries(IChartDataCell value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chart type is Funnel.

        Parameters:
        value - Data point value
        Returns:
        New data point.
      • addDataPointForMapSeries

        IChartDataPoint addDataPointForMapSeries(IChartDataCell value)

        Creates the new data point and adds it to the end of collection. Applicable for series which chart type is Map.


         
         Presentation pres = new Presentation();
         try {
             IChart chart = pres.getSlides().get_Item(0).getShapes().addChart(ChartType.Map, 50, 50, 500, 400, false);
             IChartDataWorkbook wb = chart.getChartData().getChartDataWorkbook();
             IChartSeries series = chart.getChartData().getSeries().add(ChartType.Map);
             series.getDataPoints().addDataPointForMapSeries(wb.getCell(0, "B2", 5));
             series.getDataPoints().addDataPointForMapSeries(wb.getCell(0, "B3", 1));
             series.getDataPoints().addDataPointForMapSeries(wb.getCell(0, "B4", 10));
         } finally {
             if (pres != null) pres.dispose();
         }
         
        Parameters:
        value - Data point ColorValue
        Returns:
        New data point.
      • clear

        void clear()

        Removes all elements from the collection.

      • remove

        void remove(IChartDataPoint value)

        Removes the specified value.

        Parameters:
        value - The value.
        Throws:
        com.aspose.ms.System.ArgumentException - The value parameter was not found in the collection.
      • removeAt

        void removeAt(int index)

        Removes the element at the given index.

        Parameters:
        index - Index of a data point to remove.