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

Create a Candlestick chart and bind it to data at runtime.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Create a Candlestick chart and bind it to data at runtime.

License:Other


Languages

Language:Visual Basic .NET 50.9%Language:C# 49.1%