ChartArea object (Excel Graph)

Represents the chart area of the specified chart.

Remarks

The chart area in a 2D chart contains the axes, the chart title, the axis titles, and the legend.

The chart area in a 3D chart contains the chart title and the legend; it doesn't include the plot area (the area within the chart area where the data is plotted).

For information about formatting the plot area, see the PlotArea object.

Use the ChartArea property to return the ChartArea object.

Example

The following example sets the pattern for the chart area.

myChart.ChartArea.Interior.Pattern = xlLightDown

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.