Skip to content

DevExpress-Examples/winforms-charts-create-side-by-side-bar-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chart for WinForms - Create a Side-by-Side Bar Chart

This example shows how to create a Side-by-Side Bar chart at runtime.

Resulting chart

In this example, you add Series objects to the ChartControl.Series collection and then populate the Series.Points collection with points for each series.

The Chart Control uses the XY-Diagram to display bar series. Cast the ChartControl.Diagram property to the XYDiagram type to access diagram settings. The Chart Control determines the diagram type based on the series that is added first. We recommend that you access the diagram to configure its settings after at least one series is added to the chart.

Note that you can cast the series' View property to the SideBySideBarSeriesView type to access bar series appearance settings.

Files to Look At

Documentation

More Examples