Chart Axis Label Format

Hi Team,

Just wonder how to set up the axis label with both numeric and customer format.

For example, I want the axis to be like "10,000 kWh", "20,000 kWh" etc. We can get the unit simply by setting LabelFormat="${value} kWh" .

but I don't know how to parse value with 'n0' format. Is there any work around?

Regards,

Feifan

3 Replies

BP Baby Palanidurai Syncfusion Team February 18, 2020 08:58 AM UTC

Hi Feifan, 
 
Greetings from Syncfusion. 
 
We cannot use the globalized format and custom format. So, you can use either a custom format or a globalized format. And then, if you want to comma separator, you can use UseGroupingSeparator as true in the chart options. 
Please find the below documentation link, 
 
Kindly revert us, if you have any concerns. 
 
Regards, 
Baby. 



AL Alex March 25, 2020 11:35 AM UTC

Hi there,

I wonder, is it possible to add additional opposite ChartAxis with custom labels without adding separate ChartSeries? This is possible in Xamarin version by adding custom axis which inherits from NumericalAxis for example and overriding OnCreateLabels() method.

Thanks




SM Srihari Muthukaruppan Syncfusion Team March 27, 2020 03:19 AM UTC

Hi Alex,

We have analyzed your query. From that, we would like to let you know that it is not possible to add additional opposite ChartAxis with custom labels without adding separate ChartSeries. We have also attached the demo sample link and UG link to achieve multiple Axis using series. Please find the below sample for your reference.



Let me know if you have any concerns.

Regards,
Srihari M 


Loader.
Up arrow icon