Format Text Label and Legend

Hello, 

How can I format text label and legend to K, M... format as I did in the Column Chart?

Column Chart and Accumulation Chart I used textRender event, but it didn't work in Gauge. It'd be great if the legend would follow the same format (K=Thousand, M= Million.. etc..)

Best Regards

MC




7 Replies 1 reply marked as answer

SA Sabari Anand Senthamarai Kannan Syncfusion Team September 29, 2020 07:26 PM UTC

Hi Maikel, 

Thank you for contacting Syncfusion support. 

We are currently preparing the sample application for your requirement. We will update you with further details on September 30, 2020. 

Regards, 
Sabari Anand


MC Maikel Cordeiro September 29, 2020 08:01 PM UTC

OK, thank you so much.


SB Swetha Babu Syncfusion Team September 30, 2020 02:31 PM UTC

Hi Maikel,

Thank you for your patience.

We can customize the axis labels to the required format using the axisLabelRender event in the circular gauge. We can customize the text for the legend items using the legendText property in the ranges property. We have created a simple javascript application to demonstrate the same and it can be downloaded from the following link.

https://www.syncfusion.com/downloads/support/directtrac/158226/ze/CIRCUL~2-1288063455

Please find the below screenshot of the output from the above sample.


In the above sample, we have created a simple gauge with ranges and legend. We have used the axisLabelRender event to render the axis label as required. Please let us know if the above sample meets your requirement.

Please let us know if you need any further assistance.

Regards,
Swetha Babu



MC Maikel Cordeiro October 6, 2020 12:02 AM UTC

Hi, I haven't received the e-mail with your answer.

I'm trying to download the example but is says "Access Denied". I'm already logged in, btw.

Thanks.


SB Swetha Babu Syncfusion Team October 6, 2020 03:58 PM UTC

Hi Maikel,

Sorry for the inconvenience caused.

We have changed the sample link and it can be downloaded from the following link.

https://www.syncfusion.com/downloads/support/forum/158226/ze/circulargauge77930328

Please let us know if you need any further assistance.

Regards,
Swetha Babu

Marked as answer

MC Maikel Cordeiro October 7, 2020 12:06 AM UTC

Awesome!

With your previous answer, I was able to solve the "value problem". But, I still had a problem with the legend. With this example, I know how to solve the whole situation.

Thank you so much.


SA Sabari Anand Senthamarai Kannan Syncfusion Team October 7, 2020 07:46 AM UTC

Hi Maikel, 
 
Thank you for your update. 
 
We are glad to hear that the provided solution meets your requirement. Please let us know if you need any further assistance. 
 
Regards, 
Sabari Anand

Loader.
Up arrow icon