View on GitHub

dotnet-eud

.NET Controls End-User Documentation

Modifying a Chart Manually

After you create a chart, you can choose whether to apply one of the predefined chart layouts or specify your own layout. The Spreadsheet provides the capability to add axis titles and chart titles, show the chart legend, display gridlines and data labels, etc.

To modify a chart, click it to display the Chart Tools contextual tab.

Add a Chart Title

To add a title to your chart, click the Chart Title button in the Labels group within the Layout tab, and then select where to position the chart title. For example, click the Above Chart button to display the title at the top of the chart.

ChartTitleButton

The image below illustrates the result.

ChartTitleInChart

To change the default text in the title, right-click the chart and select the Change Chart Title… item in the context menu. Specify a new chart title in the invoked Change Chart Title dialog box.

ChangeChartTitle2

Add Axis Titles

To display horizontal and vertical axis titles, click the Axis Titles button in the Labels group within the Layout tab and do the following.

To change the default text in the axis title, right-click the chart and select the Change Horizontal Axis Title… or Change Vertical Axis Title… item in the context menu. Type a new title in the invoked dialog box.

ChangeVerticalAxisTitleDialog

Add a Chart Legend

To add a legend to the chart, click the Legend button in the Labels group within the Layout tab, and then select where to position the legend.

LegendButton

For example, click the Show Legend at Top button to display the legend above the plot area.

ChartWithLegendAbove

Display Data Labels

To display data values on the chart, click the Data Labels button in the Labels group within the Layout tab, and then select where to position the data labels.

DataLabelsButton

Add Gridlines

To display chart gridlines, click the Gridlines button in the Axes group within the Layout tab and do one of the following:

A chart with horizontal and vertical gridlines is shown below.

ChartWithGridlines