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

EmptyValue Approximation and multiple empty values in a row

3 Answers 72 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Baris
Top achievements
Rank 1
Baris asked on 04 Sep 2009, 07:10 PM
I find that if I have EmptyValue.Mode set to Approximation, I get undesired results in my graph if I have multiple values missing in a row. For example, if I have these consecutive values in my series:

1, 2, <empty>, <empty>, <empty>, 3, 4, 5

The dotted line looks like it is using:

1, 2, 2.5, 2.5, 2.5, 3, 4, 5

In this series, I would expect the approximation to result in, or even just 1, 2, 3, 4, 5:

1, 2, 2.25, 2.50, 2.75, 3, 4, 5

I would actually like to ignore those three data points entirely.. Consider this data:

0.05     1     5
0.10     2
0.15
0.20            6
0.25            7
0.30     3
0.35     4
0.40     5     9

I essentially want the empty fields to be ignored for each ChartSeries, or approximated better than I described above (2.5 for all three missing values in the second column). Is there a mode I can set in the approximation that I'm missing, or is what I'm getting the only possible behavior? The only two EmptyValue modes I see are "Zero" and "Approximation", neither of which do what I want.

Thanks,
Baris

3 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 10 Sep 2009, 08:21 AM
Hello Baris,

You can set the empty values line color to transparent, so that they do not appear in the chart:

ChartSeries.Appearance.EmptyValue.Line.Color = Colors.Transparent;

Regards,
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.
0
Baris
Top achievements
Rank 1
answered on 10 Sep 2009, 04:51 PM
Thanks for your reply. I'm already doing that, which in my case is resulting in lots of empty/invisible segments in the line. Wouldn't it make sense to be able to have a mode where those segments are just connected with a single line, like the other parts of the line chart are (where there are no empty values)?

This would be like having a third approximation mode, something like Ignore or None.

Thanks,
Baris
0
Ves
Telerik team
answered on 14 Sep 2009, 04:41 PM
Hi Baris,

Thanks for the feedback. I have forwarded it to our developers for further consideration. I have also updated your Telerik points.

Sincerely,
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.
Tags
Chart (obsolete as of Q1 2013)
Asked by
Baris
Top achievements
Rank 1
Answers by
Ves
Telerik team
Baris
Top achievements
Rank 1
Share this question
or