Skip to main content

Series

Version: 12.0

Series

A Series is a collection of values added to a plot area and then used to display an individual graph. DynamicPDF Core Suite has classes for creating area series, bar series, line series, column series, XY scatter series and pie series.

info

Refer to the documentation on each chart type for code examples of each type of series.

It also has classes for stacked and 100% stacked series; however, these are covered by the Stacked Series documentation and not covered here. This page discusses the following series.

  • DateTimeAreaSeries
  • IndexedAreaSeries
  • DateTimeBarSeries
  • IndexedBarSeries
  • DateTimeLineSeries
  • IndexedLineSeries
  • DateTimeColumnSeries
  • IndexedColumnSeries
  • XYScatterSeries
  • PieSeries
info

When reviewing each particular series, note the parent classes of the specific series. Each series inherits most of its properties from one or more parent series.

SeriesBase, XYSeries & LegendXYSeries​

All series are derived from the SeriesBase class. All series are further derived from the XYSeries and/or the LegendXYSeries (refer to the API documentation of both for a complete child class list). When working with a particular series, most of its properties are inherited from one or more of these three parent classes.

info

Inherited properties are only listed in the parent class.

Properties​

The SeriesBase, XYSeries, and LegendXYSeries have the following properties.

SeriesBase Properties​

PropertyDescription
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)

XYSeries Properties​

PropertyDescription
BorderColorGets or sets the Color to use for the border of the bar series.
BorderWidthGets or sets the border width of the bar series.
ColorGets or sets the Color object to use for the color of the series.
DataLabelGets or sets the BarColumnValuePositionDataLabel to use for the data label of the bar series. This is the default data label for the series.
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
PlotAreaGets the PlotArea object . (Inherited from PlotAreaElement)
ValueFormatGets or sets the format to use for the value of the ValuePositionDataLabel .

LegendXYSeries Properties​

PropertyDescription
ColorGets or sets the Color object to use for the color of the series.
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
LegendLabelGets the LegendLabel object to use for the series.
NameGets the name of the series.
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)

Area Series​

An AreaSeries inherits from the LegendXYSeries, XYSeries, and SeriesBase classes. An AreaSeries has two subclasses, DateTimeAreaSeries and IndexedAreaSeries. These subclasses both inherit the following AreaSeries properties.

Properties​

PropertyDescription
DataLabelGets or sets the ValuePositionDataLabel of the area series. This is the default data label for the series.
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
MarkerGets or sets the Marker of the area series.
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
ValueFormatGets or sets the value format string of the area series.

DateTimeAreaSeries​

A DateTimeAreaSeries is a collection of values, each corresponding to a particular point in time, plotted as an area chart. A DateTimeAreaSeries uses a DateTimeXAxis as the XAxis type and a NumericYAxis as the YAxis type. It uses the .NET Framework's DateTime structure for setting the date portion of the values in a series.

Properties​

PropertyDescription
DataLabelGets or sets the ValuePositionDataLabel of the area series. This is the default data label for the series.
MarkerGets or sets the Marker of the area series.
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
ValueFormatGets or sets the value format string of the area series.

The following code shows how to create and add values to a DateTimeAreaSeries.

DateTimeAreaSeries areaSeries = new DateTimeAreaSeries("Website A");
areaSeries.Values.Add(521, new DateTime(2004, 1, 1));
areaSeries.Values.Add(969, new DateTime(2004, 1, 2));
areaSeries.Values.Add(452, new DateTime(2004, 1, 3));
areaSeries.Values.Add(347, new DateTime(2004, 1, 4));
Dim MyAreaSeries As New DateTimeAreaSeries("Website A")
MyAreaSeries.Values.Add(521, New Date(2004, 1, 1))
MyAreaSeries.Values.Add(969, New Date(2004, 1, 2))
MyAreaSeries.Values.Add(452, New Date(2004, 1, 3))
MyAreaSeries.Values.Add(347, New Date(2004, 1, 4))
info

Refer to the DateTimeAreaSeries API documentation for a complete example.

IndexedAreaSeries​

An IndexedAreaSeries is a collection of values plotted as an area chart in indexed order. An IndexedAreaSeries uses an IndexedXAxis as the XAxis type and a NumericYAxis as the YAxis type.

Properties​

LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
ValuesGets the IndexedAreaValueList object contained in the IndexedAreaSeries.
XAxisGets the IndexedXAxis object of the series.
YAxisGets the NumericYAxis object of the series.

The following code shows how to create and add values to an IndexedAreaSeries.

IndexedAreaSeries areaSeries = new IndexedAreaSeries("Website A");
areaSeries.Values.Add(521, 0);
areaSeries.Values.Add(969, 1);
areaSeries.Values.Add(451, 2);
areaSeries.Values.Add(347, 3);
Dim MyAreaSeries As IndexedAreaSeries = New IndexedAreaSeries("Website A")
MyAreaSeries.Values.Add(521, 0)
MyAreaSeries.Values.Add(969, 1)
MyAreaSeries.Values.Add(452, 2)
MyAreaSeries.Values.Add(347, 3)
info

Refer to the IndexedAreaSeries API documentation for a complete example.

Bar Series​

A bar chart is parent to the DateTimeBarSeries and IndexedBarSeries. A BarSeries inherits from the XYSeries, LegendXYSeries, and SeriesBase classes.

Properties​

PropertyDescription
BorderColorGets or sets the Color to use for the border of the bar series.
BorderWidthGets or sets the border width of the bar series.
DataLabelGets or sets the BarColumnValuePositionDataLabel to use for the data label of the bar series. This is the default data label for the series.
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
ValueFormatGets or sets the format to use for the value of the ValuePositionDataLabel .

DateTimeBarSeries​

A DateTimeBarSeries is a collection of values, each corresponding to a particular point in time, plotted as a bar chart. A DateTimeBarSeries uses a NumericXAxis as the XAxis type and a DateTimeYAxis as the YAxis type. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.

Properties​

PropertyDescription
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
ValuesGets the DateTimeBarValueList object contained in the series.
XAxisGets the NumericXAxis object of the series.
YAxisGets the DateTimeYAxis object of the series.

The following code shows how to create and add values to a DateTimeBarSeries.

DateTimeBarSeries barSeries = new DateTimeBarSeries("Website A");
barSeries.Values.Add(521, new DateTime(2004, 1, 1));
barSeries.Values.Add(969, new DateTime(2004, 1, 2));
barSeries.Values.Add(452, new DateTime(2004, 1, 3));
barSeries.Values.Add(347, new DateTime(2004, 1, 4));
Dim MyBarSeries As New DateTimeBarSeries("Website A")
MyBarSeries.Values.Add(521, New Date(2004, 1, 1))
MyBarSeries.Values.Add(969, New Date(2004, 1, 2))
MyBarSeries.Values.Add(452, New Date(2004, 1, 3))
MyBarSeries.Values.Add(347, New Date(2004, 1, 4))
info

Refer to the DateTimeBarSeries API documentation for a complete example.

IndexedBarSeries​

An IndexedBarSeries is a collection of values plotted as a bar chart in indexed order. An IndexedBarSeries uses a NumericXAxis as the XAxis type and a IndexedYAxis as the YAxis type.

Properties​

PropertyDescription
LegendGets or sets the Legend object . (Inherited from PlotAreaElement)
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
ValuesGets the IndexedBarValueList object contained in the IndexedBarSeries.
XAxisGets the NumericXAxis object of the series.
YAxisGets the IndexedYAxis object of the series.

The following code shows how to create and add values to an IndexedBarSeries.

IndexedBarSeries barSeries = new IndexedBarSeries("Website A");
barSeries.Values.Add(521, 0);
barSeries.Values.Add(969, 1);
barSeries.Values.Add(451, 2);
barSeries.Values.Add(347, 3);
Dim MyBarSeries As IndexedBarSeries = New IndexedBarSeries("Website A")
MyBarSeries.Values.Add(521, 0)
MyBarSeries.Values.Add(969, 1)
MyBarSeries.Values.Add(452, 2)
MyBarSeries.Values.Add(347, 3)
info

Refer to the IndexedBarSeries API documentation for a complete example.

Line Series​

A LineSeries is a collection of values plotted as a line and is parent of the DateTimeLineSeries and IndexedLineSeries classes. The LineSeries inherits from the XYSeries, LegendXYSeries, and SeriesBase classes.

Properties​

PropertyDescription
DataLabelGets or sets the ValuePositionDataLabel of the line series. This is the default data label for the series.
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
LineCapGets or sets the LineCap of the LineSeries.
LineJoinGets or sets the LineJoin.
LineStyleGets or sets the LineStyle.
MarkerGets or sets the Marker of the line series.
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
ValueFormatGets or sets the ValueFormat.
WidthGets or sets the LineWidth.

DateTimeLineSeries​

A DateTimeLineSeries is a collection of values, each corresponding to a particular point in time, plotted as a line graph. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series. A DateTimeLineSeries uses a DateTimeXAxis as the XAxis type and a NumericYAxis as the YAxis type.

Properties​

PropertyDescription
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
ValuesGets the DateTimeLineValueList object contained in the DateTimeLineSeries.
XAxisGets the DateTimeXAxis object of the series.
YAxisGets the NumericYAxis object of the series.

The following code shows how to create and add values to a DateTimeLineSeries.

DateTimeLineSeries lineSeries = new DateTimeLineSeries("Website A");
lineSeries.Values.Add(521, new DateTime(2004, 1, 1));
lineSeries.Values.Add(969, new DateTime(2004, 1, 2));
lineSeries.Values.Add(452, new DateTime(2004, 1, 3));
lineSeries.Values.Add(347, new DateTime(2004, 1, 4));
Dim MyLineSeries As New DateTimeLineSeries("Website A")
MyLineSeries.Values.Add(521, New Date(2004, 1, 1))
MyLineSeries.Values.Add(969, New Date(2004, 1, 2))
MyLineSeries.Values.Add(452, New Date(2004, 1, 3))
MyLineSeries.Values.Add(347, New Date(2004, 1, 4))
info

Refer to the DateTimeLineSeries API documentation for a complete example.

IndexedLineSeries​

An IndexedLineSeries is a collection of values plotted as a line graph in indexed order. An IndexedLineSeries uses an IndexedXAxis as the XAxis type and a NumericYAxis as the YAxis type.

Properties​

PropertyDescription
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
ValuesGets the IndexedLineValueList object contained in the IndexedLineSeries.
XAxisGets the IndexedXAxis object of the series.
YAxisGets the NumericYAxis object of the series.

The following code shows how to create and add values to an IndexedLineSeries.

IndexedLineSeries lineSeries = new IndexedLineSeries("Website A");
lineSeries.Values.Add(521, 0);
lineSeries.Values.Add(969, 1);
lineSeries.Values.Add(451, 2);
lineSeries.Values.Add(347, 3);
Dim MyLineSeries As IndexedLineSeries = New IndexedLineSeries("Website A")
MyLineSeries.Values.Add(521, 0)
MyLineSeries.Values.Add(969, 1)
MyLineSeries.Values.Add(452, 2)
MyLineSeries.Values.Add(347, 3)
info

Refer to the IndexedLineSeries API documentation for a complete example.

Column Series​

A ColumnSeries displays data as columns and has two types of series, DateTimeColumnSeries and IndexedColumnSeries. A ColumnSeries inherits from the XYSeries, LegendXYSeries, and BaseSeries classes.

Properties​

PropertyDescription
BorderWidthGets or sets the border width of the column series.
DataLabelGets or sets the BarColumnValuePositionDataLabel to use for the data label of the column series. This is the default data label for the series.
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
ValueFormatGets or sets the format to use for the value of the ValuePositionDataLabel object.

DateTimeColumnSeries​

A DateTimeColumnSeries is a collection of values corresponding to a particular point in time plotted as a column chart. A DateTimeColumnSeries uses a DateTimeXAxis as the XAxis type and a NumericYAxis as the YAxis type. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.

Properties​

PropertyDescription
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
ValuesGets the DateTimeColumnValueList object contained in the DateTimeColumnSeries.
XAxisGets the DateTimeXAxis object of the series.
YAxisGets the NumericYAxis object of the series.

The following code shows how to create and add values to a DateTimeColumnSeries.

DateTimeColumnSeries columnSeries = new DateTimeColumnSeries("Website A");
columnSeries.Values.Add(521, new DateTime(2004, 1, 1));
columnSeries.Values.Add(969, new DateTime(2004, 1, 2));
columnSeries.Values.Add(452, new DateTime(2004, 1, 3));
columnSeries.Values.Add(347, new DateTime(2004, 1, 4));
Dim MyColumnSeries As New DateTimeColumnSeries("Website A")
MyColumnSeries.Values.Add(521, New Date(2004, 1, 1))
MyColumnSeries.Values.Add(969, New Date(2004, 1, 2))
MyColumnSeries.Values.Add(452, New Date(2004, 1, 3))
MyColumnSeries.Values.Add(347, New Date(2004, 1, 4))
info

Refer to the DateTimeColumnSeries API documentation for a complete example.

IndexedColumnSeries​

An IndexedColumnSeries is a collection of values plotted as a column chart in indexed order. An IndexedColumnSeries uses an IndexedXAxis as the XAxis type and a NumericYAxis as the YAxis type.

Properties​

PropertyDescription
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
ValuesGets the IndexedColumnValueList object contained in the IndexedColumnSeries.
XAxisGets the IndexedXAxis object of the series.
YAxisGets the NumericYAxis object of the series.

The following code shows how to create and add values to an IndexedColumnSeries.

IndexedColumnSeries columnSeries = new IndexedColumnSeries("Website A");
columnSeries.Values.Add(521, 0);
columnSeries.Values.Add(969, 1);
columnSeries.Values.Add(451, 2);
columnSeries.Values.Add(347, 3);
Dim MyColumnSeries As IndexedColumnSeries = New IndexedColumnSeries("Website A")
MyColumnSeries.Values.Add(521, 0)
MyColumnSeries.Values.Add(969, 1)
MyColumnSeries.Values.Add(452, 2)
MyColumnSeries.Values.Add(347, 3)

Refer to the IndexedColumnSeries API documentation for a complete example.

XYScatterSeries​

An XYScatterSeries is a collection of values plotted as an XYScatter chart. It is child class to the XYSeries, LegendXYSeries, and SeriesBase classes. An XYScatterSeries uses a NumericXAxis as the XAxis type and a NumericYAxis as the YAxis type.

Properties​

PropertyDescription
DataLabelGets or sets the XYScatterDataLabel of the XYScatter series. This is the default data label for the series.
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
LineCapGets or sets the LineCap of the XYScatterSeries.
LineDisplayGets or sets the LineDisplay status of the XYScatterSeries.
LineJoinGets or sets the LineJoin of the XYScatterSeries.
LineStyleGets or sets the LineStyle of the XYScatterSeries.
MarkerGets or sets the Marker of the XYScatter series.
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
ValuesGets the XYScatterValueList of the XYScatterSeries.
WidthGets or sets the LineWidth of the XYScatterSeries.
XAxisGets the NumericXAxis of the series.
XValueFormatGets or sets the XValueFormatString of the XYScatterSeries.
YAxisGets the NumericYAxis of the series.
YValueFormatGets or sets the YValueFormatString of the XYScatterSeries.

The following code shows how to create and add values to a XYScatterSeries.

XYScatterSeries xyScatterSeries = new XYScatterSeries("Website A");
xyScatterSeries.Values.Add(59,10);
xyScatterSeries.Values.Add(75,15);
xyScatterSeries.Values.Add(92,25);
xyScatterSeries.Values.Add(63,30);
xyScatterSeries.Values.Add(45,43);
Dim MyXYScatterSeries As XYScatterSeries = New XYScatterSeries("Website A")
MyXYScatterSeries.Values.Add(59, 10)
MyXYScatterSeries.Values.Add(75, 15)
MyXYScatterSeries.Values.Add(92, 25)
MyXYScatterSeries.Values.Add(63, 30)
MyXYScatterSeries.Values.Add(45, 43)
info

Refer to the XYScatterSeries API documentation for a complete example.

PieSeries​

A PieSeries is a collection of values plotted as a pie chart. A PieSeries does not use any XAxis or YAxis. A PieSeries only inherits from the SeriesBase parent class.

Properties​

PropertyDescription
BorderWidthGets or sets the BorderWidth of the PieSeries.
DataLabelGets or sets the ScalarDataLabel object to use for the data label of the PieSeries. This is the default data label for the series.
DataLabelPositionGets or sets ScalarDataLabelPosition enumeration that specifies the display position of the data label.
ElementsGets the PieSeriesElementList object contained in the PieSeries.
HeightGets the height.
LabelGets or sets the SeriesLabel object to use for the name of the PieSeries.
LegendGets or sets the Legend object. (Inherited from PlotAreaElement)
PercentageFormatGets or sets the format to use for the percentage of the ScalarDataLabel object.
PlotAreaGets the PlotArea object. (Inherited from PlotAreaElement)
RadiusGets or sets the radius.
StartAngleGets or sets the StartAngle.
ValueFormatGets or sets the format to use for the value of the ScalarDataLabel object.
WidthGets the width of the PieSeries.
XGets the X coordinate.
XOffsetGets or sets the XOffset.
YGets the Y coordinate.
YOffsetGets or sets the YOffset .

The following code shows how to create and add values to a PieSeries.

PieSeries pieSeries = new PieSeries();
pieSeries.Elements.Add(13,"Product A");
pieSeries.Elements.Add(13,"Product B");
pieSeries.Elements.Add(13,"Product C");
pieSeries.Elements.Add(13,"Product D");
pieSeries.Elements.Add(13,"Product E");
Dim MyPieSeries As PieSeries = New PieSeries()
MyPieSeries.Elements.Add(13, "Product A")
MyPieSeries.Elements.Add(13, "Product B")
MyPieSeries.Elements.Add(13, "Product C")
MyPieSeries.Elements.Add(13, "Product D")
MyPieSeries.Elements.Add(13, "Product E")
info

Refer to the PieSeries API documentation for a complete example.