Skip to main content

ChartData.IsArray Property

Gets whether the chart data is an array of values.

Namespace: DevExpress.Spreadsheet.Charts

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

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

public bool IsArray { get; }

Property Value

Type Description
Boolean

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

Remarks

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.

View Example

Worksheet worksheet = workbook.Worksheets[0];
workbook.Worksheets.ActiveWorksheet = worksheet;
worksheet.Columns[0].WidthInCharacters = 2.0;

// Create a chart and specify its location.
Chart 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.
Series series_of_literal = chart.Series.Add(
    new CellValue[] { "Jan", "Feb", "Mar", "Apr", "May", "Jun" },
    new CellValue[] { 50, 100, 30, 104, 87, 150 });
See Also