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

Line Chart

2 Answers 25 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Denis
Top achievements
Rank 1
Denis asked on 02 Dec 2011, 10:46 PM
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 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 07 Dec 2011, 03:13 PM
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 >>

0
Denis
Top achievements
Rank 1
answered on 08 Dec 2011, 04:05 PM
Hi Petar,
Thanks for your help... it works.
Tags
Chart
Asked by
Denis
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Denis
Top achievements
Rank 1
Share this question
or