FlexChart | ComponentOne
FlexChart / Understanding FlexChart / FlexChart Types / Financial / WPF Candle Chart
In This Topic
    WPF Candle Chart
    In This Topic

    The Candle Chart integrates Bar and Line charts to depict a range of values over time. It consists of visual elements known as candles that are further comprised of three elements: body, wick, and tail.

    WPF Candle Chart

    WPF Candle Chart

     

    The following code shows the implementation:

    <c1:C1FlexChart x:Name="flexChart" 
                    BindingX="Time" 
                    ItemsSource="{Binding DataContext.Data}" 
                    ChartType="Candlestick">
        <c1:C1FlexChart.Series>
            <c1:Series SeriesName="Price" 
                       Binding="High,Low,Open,Close"/>
        </c1:C1FlexChart.Series>
    </c1:C1FlexChart>
    
    C#
    Copy Code
    flexChart.ChartType = C1.Chart.ChartType.Candlestick;