EmptyValues approximation in chart

2 posts, 0 answers
  1. John Kok
    John Kok avatar
    9 posts
    Member since:
    Oct 2009

    Posted 10 Dec 2009 Link to this post

    Ok i have an array that i bind to the chart, with the following values

    17
    18
    0
    0
    0
    22
    23
    0
    24
    0
    0
    21
    0
    18

    I know there is supposed to be an EptyValue property that approximates the empty (0 ???) values, but how can i use it ?
    Currently i don't see any results on the chart
    I use a bar chart and as it is now, the 0 values do not get approximated
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 11 Dec 2009 Link to this post

    Hi John,

    By default RadChart will interpret null values as empty items. In this case you can wire ItemDataBound event and check the value of e.SeriesItem.YValue. If it is 0 you can set the Empty property to true.
     

    All the best,

    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top