FlexChart | ComponentOne
WPF FlexChart / Understanding FlexChart / WPF FlexChart Types / WPF Financial Charts / Candle
本主题中
    Candle
    本主题中

    Candle 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#
    拷贝代码
    flexChart.ChartType = C1.Chart.ChartType.Candlestick;