.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

ChartData.IsArray Property

Gets whether the chart data is an array of values.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v21.1.Core.dll


public bool IsArray { get; }

Property Value

Type Description

true, if the chart data is an array of values; otherwise, false.


The chart data is an array if the ChartData object is created from an array of CellValue objects using one of the methods listed below:

The following example illustrates how the ChartData objects required for Series.Arguments and Series.Values properties are implicitly created from arrays of CellValue objects. Note that the CellValue type uses implicit conversion from string and integer types.

Dim worksheet As Worksheet = workbook.Worksheets(0)
workbook.Worksheets.ActiveWorksheet = worksheet
worksheet.Columns(0).WidthInCharacters = 2.0

' Create a chart and specify its location.
Dim chart As Chart = worksheet.Charts.Add(ChartType.ColumnClustered)
chart.TopLeftCell = worksheet.Cells("B2")
chart.BottomRightCell = worksheet.Cells("H15")

' Add a series bound to a set of literal data.
Dim series_of_literal As Series = chart.Series.Add(New CellValue() { "Jan", "Feb", "Mar", "Apr", "May", "Jun" }, New CellValue() { 50, 100, 30, 104, 87, 150 })
See Also