This is a migrated thread and some comments may be shown as answers.

Multi-Value Pie Chart

2 Answers 204 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 23 Dec 2015, 12:06 AM

I am passing json data to a Kendo javascript pie chart, but I would like to display 2 values on the chart, one is the number of units and the other is the % value of those units to the whole. For example,

Units Sold

100 Apples - 25%

200 Oranges - 50%

100 Peaches - 25%

I assume I can do it, but I don't know the syntax for the template. Thanks.

2 Answers, 1 is accepted

Sort by
0
Vasil Yordanov
Telerik team
answered on 24 Dec 2015, 09:00 AM
Hello Mike,

You should use the percentage template variable. Here is a sample dojo - http://dojo.telerik.com/@yordanov/IbipO

In addition, you can see the full list of series template variables in our documentation.

Regards,
Vasil Yordanov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Mike
Top achievements
Rank 1
answered on 28 Dec 2015, 06:09 PM
Thank you. This was helpful. I was calculating my own percentage in javascript.
Tags
Charts
Asked by
Mike
Top achievements
Rank 1
Answers by
Vasil Yordanov
Telerik team
Mike
Top achievements
Rank 1
Share this question
or