Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartObject Interface

Contains basic properties and methods for embedded charts and chart sheets.

Namespace: DevExpress.Spreadsheet.Charts

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

public interface ChartObject :
    ShapeFormat,
    ShapeFormatBase

The following members return ChartObject objects:

#Remarks

The ChartObject interface defines common options related to embedded charts (a Chart interface is inherited from ChartObject) and chart sheets (use the ChartSheet.Chart property to access a chart located on a chart sheet). For example, it allows you to select chart data (ChartObject.SelectData, ChartObject.Series), change the chart type (ChartObject.ChangeType), modify the chart layout (ChartObject.PlotArea, ChartObject.PrimaryAxes, ChartObject.SecondaryAxes, ChartObject.Legend, ChartObject.Title) and adjust the chart appearance (ChartObject.Style, ChartObject.Views, ChartObject.View3D). Using the ChartObject.MoveToNewChartSheet method, you can transfer an embedded chart to a chart sheet, or move it back to a worksheet by calling ChartObject.MoveToWorksheet.

See Also