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
close icon

JSChart Pie label format

How can I apply formatting to the labels on pie charts? The Health tracker example had labels like "41g Fat", but looking at the source code the label text is a property of the Points collection, but I'm using remote data.

1 Reply

GS Gowrimathi S Syncfusion Team September 5, 2013 04:34 AM UTC

Hi Alexei,

Thanks for using Syncfusion product.   

The “text” properties of the points are used to customize the labels.  In remote data, we are unable to specify the text to the Point collection, hence you can use “seriesRendering” events to add the text properties to the point collection before the series render. We have created a simple sample based on the query,  please find the sample from the attachment

Regards

Gowrimathi S

 

 



piechart_c8fc34c9.zip

Loader.
Live Chat Icon For mobile
Up arrow icon