Skip to content

DevExpress-Examples/winforms-chart-create-candlestick-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chart for WinForms - Create a Candlestick Chart

This example shows how to create a Candlestick chart and bind it to data at runtime.

Candlestick chart

In this example, you add a Series object of the CandleStick view to the ChartControl.Series collection. To specify the data source of the series, use the DataSource property. Call the SeriesBase.SetFinancialDataMembers method to define which data members store arguments, and Open, High, Low, and Close values.

Cast the View property of the series to the CandleStickSeriesView type to access bar series appearance settings.

The Chart Control uses the XY-Diagram to display candlestick 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.

Files to Look At

Documentation

More Examples