Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
825
Formating Marker Labels for Line Chart
posted

Is there a way that the numbers that show up above the markers in a line chart to be formatted and is there a way to move them below the markers?

Parents
  • 9836
    Verified Answer
    posted

    In order to achieve that you can use the Format and the LabelDistance properties as follows: 

    <igCA:XamWebChart>

                <igCA:XamWebChart.Series>

                    <igCA:Series ChartType="Line">

                        <igCA:Series.Marker>

                            <igCA:Marker Format="{}{Value:c}" LabelDistance="-5"/>

                        </igCA:Series.Marker>

                        <igCA:Series.DataPoints>

                            <igCA:DataPoint Value="40"/>

                            <igCA:DataPoint Value="50"/>

                            <igCA:DataPoint Value="60"/>

                            <igCA:DataPoint Value="70"/>

                        </igCA:Series.DataPoints>

                    </igCA:Series>

                </igCA:XamWebChart.Series>

    </igCA:XamWebChart>

    Let me know if that works for you.

Reply Children