Line Chart

3 posts, 0 answers
  1. Denis
    Denis avatar
    3 posts
    Member since:
    Dec 2011

    Posted 02 Dec 2011 Link to this post

    I have some data that looks like this. This data is sent from a WEB Service
    Apr-11      2,320,600.06
    May-11      8,589,525.26
    Jun-11    12,889,210.18
    Jul-11    20,453,085.93
    Aug-11    24,343,052.89
    Sep-11    28,107,905.64
    Oct-11    38,744,994.68
    Nov-11  
    Dec-11

    Because the values are sent as a decimal type, the chart receive a zero value for Nov and Dec.
    Nov and Dec doesn't have any data yet. I'd like to see the line on the chart to stop at Oct-11 instead of dropping to zero.
    Thanks
    Denis
  2. Petar Marchev
    Admin
    Petar Marchev avatar
    1029 posts

    Posted 07 Dec 2011 Link to this post

    Hi Denis,

    You can set the EmptyPointBehavior property of the series definition to  "Gap".
    Please check our demo on Empty Values here and look at the help on Empty Values here.
    Note that the property at issue needs to be a Nullable type. Alternatively, you can wire the ItemDataBound event and set IsEmpty = true to the datapoints you do not need to show.

    Kind regards,
    Petar Marchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Denis
    Denis avatar
    3 posts
    Member since:
    Dec 2011

    Posted 08 Dec 2011 Link to this post

    Hi Petar,
    Thanks for your help... it works.
Back to Top