Back to Devexpress

SeriesCollection.Add(String, ChartData, ChartData) Method

officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-seriescollection-dot-add-x28-system-dot-string-devexpress-dot-spreadsheet-dot-charts-dot-chartdata-devexpress-dot-spreadsheet-dot-charts-dot-chartdata-x29.md

latest2.7 KB
Original Source

SeriesCollection.Add(String, ChartData, ChartData) Method

Appends a new series with the specified name to the collection and provides data for series arguments and series values.

Namespace : DevExpress.Spreadsheet.Charts

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
Series Add(
    string seriesName,
    ChartData arguments,
    ChartData values
)
vb
Function Add(
    seriesName As String,
    arguments As ChartData,
    values As ChartData
) As Series

Parameters

NameTypeDescription
seriesNameString

A string that is the name of the series.

| | arguments | ChartData |

A ChartData object that is the data to plot as series arguments.

| | values | ChartData |

A ChartData object that is the data to plot as series values.

|

Returns

TypeDescription
Series

A Series object that is the newly created series.

|

Remarks

The Add method adds a series with the same Series.SeriesType as the ChartView.ViewType of the chart view to which a series collection belongs. If the ChartObject.Series property is used to obtain a series collection and the chart is composed of several views, the type of the chart view with the highest index is used.

See Also

SeriesCollection Interface

SeriesCollection Members

DevExpress.Spreadsheet.Charts Namespace