Back to Devexpress

ChartObject.GetDataRange() Method

officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-chartobject-df6a1437.md

latest1.9 KB
Original Source

ChartObject.GetDataRange() Method

Returns a cell range containing chart data.

Namespace : DevExpress.Spreadsheet.Charts

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
CellRange GetDataRange()
vb
Function GetDataRange As CellRange

Returns

TypeDescription
CellRange

A CellRange object that is a contiguous or noncontiguous (union) range of cells containing chart data.

|

Remarks

The GetDataRange method returns null ( Nothing in Visual Basic) in the following cases:

  • If a chart does not use data from a cell range (e.g., the chart is created using an array of literals);
  • If a chart obtains data from cell ranges located on different worksheets.

To obtain data used to plot a particular series on a chart, use the Series.Arguments and Series.Values properties.

See Also

Spreadsheet Chart Overview

How to: Create and Modify a Chart

ChartObject Interface

ChartObject Members

DevExpress.Spreadsheet.Charts Namespace