Pie Chart - Don't show item on chart if value lower than specified range

3 posts, 1 answers
  1. Kyriakos
    Kyriakos avatar
    15 posts
    Member since:
    Jun 2012

    Posted 10 Jan 2013 Link to this post

    Hi , is there a possibility for a pie chart to avoid showing on the chart data that have very low value numbers?
     if for a example you want to design a pie chart with a array of 150 items and display the percentage of them in the pie chart;
     if some items have the value lets say 0.01% you don't want to show them on the chart .
    Because the slice will be neglictable and also will be too much information around the pie chart that would make it difficult to read.
    So the question deep down is if you can set a minimum and a maximum range of values for the pie chart and fetch display data only that belong to that range.
  2. Answer
    Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 10 Jan 2013 Link to this post

    Hi Kyrikos,

    You need to:
    • Hook up to parse() of the dataSource and there you can modify chart's data before rendering.

    Can you examine this jsbin and if you find something wrong please tell me?

    Regards,
    Hristo Germanov
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kyriakos
    Kyriakos avatar
    15 posts
    Member since:
    Jun 2012

    Posted 11 Jan 2013 Link to this post

    looks fine to me thanks for the quick reply !
Back to Top