FlexChart | ComponentOne
WPF FlexChart / Working with FlexChart / Appearance / Customizing Data Symbols
本主题中
    Customizing Data Symbols
    本主题中

    Customizing the data symbols in your application enhances the presentation and understanding of the chart. FlexChart allows you to customize the data symbols using SymbolRendered event of the Series class.

    The image below shows each of point of a series in a different colour.

     

    You can use the following code to customize the data symbols using SymbolRendered event.

    private void VendorSeries_SymbolRendering(object sender, RenderSymbolEventArgs e)
    {
        // fetches the color for the vendor from database model and draws the data symbol
        e.Engine.SetFill(new SolidColorBrush(ViewModel.SmartPhoneVendors.ElementAt(e.Index).Color));
        e.Engine.SetStroke(new SolidColorBrush(ViewModel.SmartPhoneVendors.ElementAt(e.Index).Color));
    }