Change the displayed values of a bar.

Hello. I an using syncfusion in my xamarin android app to display some graphs. I am passing a double variable to one of my axis to display this value and I am using also StackingColumnSeries to display this number inside the column. I want to ask if its possible to display this number as a string. What I mean? For example, if I am passing the number 34, I want to display inside the column the text 34%. Is it possible? Thank very much.

3 Replies

PS Parthiban Sundaram Syncfusion Team March 9, 2018 05:29 AM UTC

Hi Konstantinos, 
 
Thanks for using Syncfusion products. 
 
You can achieve this requirement with the help of LabelFormat property in LableStyle of ChartDataMarker. Please refer the following code snippet for more details. 
 
 
    series.DataMarker.LabelStyle.LabelFormat = "#'%'"; 
 
Please let us know, if you need further assistance on this.  
 
Regards,
Parthiban S 




KE Konstantinos Evangelidis March 9, 2018 11:40 AM UTC

Thank you very much for your fast answer. It's works. Thank you very much.


DV Divya Venkatesan Syncfusion Team March 12, 2018 09:30 AM UTC

Hi Konstantinos,

Thanks for the update.

We are glad to know that the given solution works.

Please let us know if you need any further assistance.

Regards,
Divya Venkatesan


Loader.
Up arrow icon