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

Charting Overview

  • 4 minutes to read

The SpreadsheetControl allows you to create charts, which help you analyze large amounts of data and show the relationship between different data sets.

The SpreadsheetControl uses DevExpress WPF Charts to render charts. The chart types and layouts are compatible with those of Microsoft® Excel®.

Refer to the Charts section for examples of how to create a chart in code using the SpreadsheetControl’s Chart API. You can insert a chart into a worksheet with data or create a standalone chart on a chart sheet.

Note

You can also embed small charts, or sparklines, in worksheet cells. Refer to the Sparklines section for examples on how to create sparkline groups of different types and adjust their appearances.

End users can select a chart on the Insert tab in the Charts group.

DXSpreadsheet_RibbonChartsGroup

Supported Chart Types

Chart Type

Chart Subtypes

Column Charts

Spreadsheet_ColumnChartExample

2-D Column Charts:

  • Clustered Column
  • Stacked Column
  • 100% Stacked Column

3-D Column Charts:

  • 3-D Clustered Column
  • 3-D Stacked Column
  • 3-D 100% Stacked Column
  • 3-D Column

Cylinder Charts:

  • Clustered Cylinder
  • Stacked Cylinder
  • 100% Stacked Cylinder
  • 3-D Cylinder

Cone Charts:

  • Clustered Cone
  • Stacked Cone
  • 100% Stacked Cone
  • 3-D Cone

Pyramid Charts:

  • Clustered Pyramid
  • Stacked Pyramid
  • 100% Stacked Pyramid
  • 3-D Pyramid

Line Charts

Spreadsheet_LineChartExample

2-D Line Charts:

  • Line
  • Stacked Line
  • 100% Stacked Line
  • Line with Markers
  • Stacked Line with Markers
  • 100% Stacked Line with Markers

3-D Line Charts:

  • 3-D Line

Pie Charts

Spreadsheet_PieChartExample

2-D Pie Charts:

  • Pie
  • Exploded Pie

3-D Pie Charts:

  • 3-D Pie
  • 3-D Exploded Pie

Doughnut Charts

Spreadsheet_DoughnutChartExample

  • Doughnut
  • Exploded Doughnut

Bar Charts

Spreadsheet_BarChartExample

2-D Bar Charts:

  • Clustered Bar
  • Stacked Bar
  • 100% Stacked Bar

3-D Bar Charts:

  • 3-D Clustered Bar
  • 3-D Stacked Bar
  • 3-D 100% Stacked Bar

Cylinder Charts:

  • Clustered Horizontal Cylinder
  • Stacked Horizontal Cylinder
  • 100% Stacked Horizontal Cylinder

Cone Charts:

  • Clustered Horizontal Cone
  • Stacked Horizontal Cone
  • 100% Stacked Horizontal Cone

Pyramid Charts:

  • Clustered Horizontal Pyramid
  • Stacked Horizontal Pyramid
  • 100% Stacked Horizontal Pyramid

Area Charts

Spreadsheet_AreaChartExample

2-D Area Charts:

  • Area
  • Stacked Area
  • 100% Stacked Area

3-D Area Charts:

  • 3-D Area
  • 3-D Stacked Area
  • 3-D 100% Stacked Area

Scatter Charts

Spreadsheet_ScatterChartExample

  • Scatter
  • Scatter with Smooth Lines and Markers
  • Scatter with Smooth Lines
  • Scatter with Straight Lines and Markers
  • Scatter with Straight Lines

Bubble Charts

Spreadsheet_BubbleChartExample

  • Bubble
  • 3-D Bubble

Stock Charts

Spreadsheet_StockChartExample

  • High-Low-Close
  • Open-High-Low-Close
  • Volume-High-Low-Close
  • Volume-Open-High-Low-Close

Radar Charts

Spreadsheet_RadarChartExample

  • Radar
  • Radar with Markers
  • Filled Radar

Chart Elements

The image below shows a chart’s basic elements.

SpreadsheetControl_ChartElements

  • Chart Area - represents the entire chart and all its elements.
  • Plot Area - the chart’s area that displays data series, axes, gridlines and data labels.
  • Data Point - a single value plotted on a chart.
  • Data Series - a group of related data points. Each data series has a unique color to distinguish between individual series on a chart with multiple series.
  • Horizontal and Vertical Axes - two perpendicular lines that run along the chart edges. Axes display category labels and measurement units. Most charts have two axes: the category axis (X-axis), usually running horizontally along the bottom of the plot area, and the value axis (Y-axis), usually running vertically on the plot area’s left side. 3-D charts also have the depth (series) axis that displays series names. The bubble and scatter charts have two value axis. The pie and doughnut charts have no axes at all.
  • Legend - identifies each data series with a color or fill pattern. A chart can have only one legend.
  • Chart Title - a text header that explains a chart’s purpose.
  • Axis Title - explanatory text used to label an axis.
  • Data Label - identifies a data point with its actual value.
  • Gridlines - a series of horizontal and vertical lines running across the plot area. You can add gridlines to a chart to improve its readability.

You can add or remove chart elements to customize a chart’s layout, as described in the Create and Modify a Chart Programmatically topic and the Charts example section.

End users can use commands on the Chart Tools contextual tab to apply one of the predefined chart layouts or manually select elements to display on a chart.

  • Select a predefined chart layout

    Spreadsheet_SelectLayout

  • Show or hide chart elements

    Spreadsheet_ShowHideElements