We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Customize data-label text

Hi,

I'd like to be able to customize the data-label text on the Cartesian Chart. Currently the labels are displaying the YBindingPath numerical value, but I'd like to add characters to the text, e.g $140 rather than 140.

Is this possible?

Thanks in advance


3 Replies 1 reply marked as answer

IH Ismail Hassani December 23, 2022 04:07 PM UTC

Use the LabelFormat


<charts:ColumnSeries>

                            <charts:ColumnSeries.DataLabelSettings>

                                <charts:CartesianDataLabelSettings LabelPlacement="Outer" >

                                    <charts:CartesianDataLabelSettings.LabelStyle>

                                        <charts:ChartDataLabelStyle FontSize="10" TextColor="{AppThemeBinding Light=Black, Dark=White}" LabelFormat="€ 0.00" />

                                    </charts:CartesianDataLabelSettings.LabelStyle>

                                </charts:CartesianDataLabelSettings>

                            </charts:ColumnSeries.DataLabelSettings>

                        </charts:ColumnSeries>



PA Paul December 24, 2022 08:59 AM UTC

Thank you

Is there documentation somewhere on all chart properties and how they're used?



RR Raja Ramalingam Syncfusion Team December 27, 2022 06:02 AM UTC

Hi Paul,

UG document link: https://help.syncfusion.com/maui/cartesian-charts/getting-started


API reference link: https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.html


Follow the below link to find the kb documents.

https://www.syncfusion.com/kb/maui/sfcartesianchart


We are still working to make our UG documentation better, and we plan on having it completed soon. Please let us know, if you need any further assistance.


Regards,

Raja.


Marked as answer
Loader.
Live Chat Icon For mobile
Up arrow icon