Skip to main content
A newer version of this page is available. .

Chart Designer

  • 3 minutes to read

The Chart Designer is a tool for building charts of any complexity from scratch and customizing existing charts without using the Visual Studio Properties window.

This topic describes how to invoke the Chart Designer, explains its structure and provides an example of how to build a chart using this designer.

How to: Invoke the Chart Designer

Click the Chart Control’s smart tag, and in its actions list, select the Run Designer link to invoke the designer at design time.

RunChartDesigner

After that, the Chart Designer appears.

chart-designer

You can also invoke the Chart Designer at runtime using the ChartDesigner.Show method:

private void btnRunDesigner_Click(object sender, RoutedEventArgs e) {
    ChartDesigner chartDesigner = new ChartDesigner(chartControl);
    chartDesigner.Show(this, new Theme("Office2016White"), DesignerWindowKind.Bar);
}

The code uses the following classes and properties:

Class or Property Description
ChartDesigner The Chart Designer.
ChartDesigner.Show Invokes the Chart Designer.
Theme A theme.
DesignerWindowKind Lists the possible Chart Designer types.

Refer to the Chart Designer for End-Users topic for more information.

The following image displays the Chart Designer’s main elements:

ChartDesignerElements

Chart Elements Tree

The Chart Elements Tree represents chart structure and allows you to select chart elements, customize their visibility, and add or remove elements. When you click an element in the tree, it is highlighted in the Chart Preview section, and the Customization Tabs area displays the element’s properties.

ChartDesigner_ChartStructure_SeriesData.

Chart Preview

The Chart Preview area allows you to see how the chart looks. You can click a chart element to show its properties in the Customization Tabsarea.

chart-designer-appearance-area

Customization Tabs

The Customization Tabs section comprises tabs that allow you to configure a chart’s settings.

  • The Options tab contains commonly used element settings.

    chart-designer-options-tab

  • The Properties tab contains all the chart elements’ settings.

    chart-designer-properties-tab

  • The Data section is shown when a series points’ collection is selected in the Elements Tree. In this tab, you can manually edit the points’ collection, for example, remove existing points and add new ones.

    chart-point-data-tab

    The Data tab is also available when the Chart control is data-bound. In this case, you can specify the data members that define data source fields used to provide data to the chart.

    chart-designer-specifying-series-templat0e

The Add Chart Element Button

You can use the chart-designer-add-button button to invoke a list of elements that can be added. In the list, select the appropriate item to add the element to the chart, series or axis depending on which element is selected in the Elements Tree.

chart-designer-add-chart-elements

The Change Chart Type Button

Use the chart-designer-change-chart-type-button button to invoke an available series types’ list. You can select the required series type to be applied to all series in a chart.

chart-designer-series-list

Examples

Refer to the Lesson 2 - Create a Chart Using the Designer tutorial to learn how to build a chart using the designer.