How to add percent sign on data values

Hello,


I am trying to add a percent symbol to show next to the numbers on my column series' numerical axis. I am currently displaying the numbers next to the column as integers but would like to add a '%' as a char if possible.


Thank you,

-David


1 Reply

DD Devakumar Dhanapoosanam Syncfusion Team May 25, 2022 10:08 AM UTC

Hi David Bauer,


We can show the DataMaker label with percentage symbol by using the DataMarkerLabelStyle
LabelFormat property as per in the below code example.


<chart:ColumnSeries.DataMarker>

    <chart:ChartDataMarker>

        <chart:ChartDataMarker.LabelStyle>

            <chart:DataMarkerLabelStyle LabelFormat="#'%'"/>

        </chart:ChartDataMarker.LabelStyle>

    </chart:ChartDataMarker>

</chart:ColumnSeries.DataMarker>


Please refer the below links for customizing data marker labels and let us know if you need any further assistance on this.


https://help.syncfusion.com/xamarin/charts/datamarker#datamarker-labelformat

https://help.syncfusion.com/xamarin/charts/datamarker#formatting-label-content

https://help.syncfusion.com/xamarin/charts/datamarker#label-template

Please let us know if you need any further assistance on this.


Regards,

Devakumar D


Loader.
Up arrow icon