Multi-Value Pie Chart

3 posts, 0 answers
  1. Mike
    Mike avatar
    5 posts
    Member since:
    Dec 2015

    Posted 22 Dec 2015 Link to this post

    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. Vasil Yordanov
    Admin
    Vasil Yordanov avatar
    43 posts

    Posted 24 Dec 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Mike
    Mike avatar
    5 posts
    Member since:
    Dec 2015

    Posted 28 Dec 2015 in reply to Vasil Yordanov Link to this post

    Thank you. This was helpful. I was calculating my own percentage in javascript.
Back to Top