ComponentOne Chart for WPF and Silverlight
Chart for WPF and Silverlight / Chart Features / Data Point Converter
In This Topic
    Data Point Converter
    In This Topic

    The DataPointConverter class is useful for creating complex point labels of template in xaml. The DataPointConverter uses the converter parameter to generate string based on the properties of the current data point. The converter parameter string can include the following keywords that are replaced by real values of properties for each point:

    The keyword starts from # and should be in curved brackets. Optional format string can be added inside brackets like in the following string.Format():. {#Values:0.0}

    The following xaml markup shows how to use the DataPointConverter class:

    Copy Code
    <c1chart:C1Chart Name="chart" ChartType="LineSymbols" Margin="20" >
         <c1chart:DataPointConverter x:Key="cnv"/>
           <c1chart:XYDataSeries Label="S1"
             XValues="1,2,3,4,5,6,7" Values="1,2,3,4,3,4,2" >
                 <Border BorderBrush="Black" BorderThickness="0.5"
                       <Binding Converter="{StaticResource cnv}">


    See Also