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

Problems with zooming

4 Answers 81 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Dr. Hartmut Kocher
Top achievements
Rank 1
Dr. Hartmut Kocher asked on 04 May 2010, 11:01 AM
I found two problems with zooming a line chart:

1) Clipping of data points
Let's say I have 5 points at x = 1..5. If I zoom to x = [1.5, 3.5] the line is only drawn for the points with x = 2,3,4. What i would expect is, that the line is interpolated from x = 1 to x = 2 and drawn starting with x = 1.5...

This is not only true for zooming but for drawing in general (e.g. manual axis).
If no data point is with the specified range, the line is not drawn at all. Instead i would expect the visible sector of the line is drawn.

2) Visibility
I set the visibility of some series using 
_diagram.DefaultView.ChartArea.DataSeries[myIndex].Definition.Visibility = false 
However, after zooming or scrolling, all series are visible again.

3) If at least one series has no data in a zoom range, zooming is not possible at all. (see 1)

Please fix this in an upcoming release.
Kind regards
Hartmut

4 Answers, 1 is accepted

Sort by
0
Dr. Hartmut Kocher
Top achievements
Rank 1
answered on 04 May 2010, 02:42 PM
OK, I found the answer to 2):

It is not enough to set the visibility of the DataSeries, you have to do the same in the series definition. It seems that the value of the series definition is copied every time the zoom factor changes. Therefore, you have to set the visibility in both places.

Kind regards
Hartmut
0
Vladimir Milev
Telerik team
answered on 05 May 2010, 02:43 PM
Hello Dr. Hartmut Kocher,

About (1) it is an interesting suggestion and we will definitely consider such an option. The problem is this behavior is a different from what we do right now and it will take some time to rework the control in this fashion. In any way we will definitely think about this option.

Thanks for the feedback!

Sincerely yours,
Vladimir Milev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Daniel
Top achievements
Rank 1
answered on 30 Nov 2010, 11:45 AM
I would vote for this feature, as we will need it for our project.  I see it hasn't been implemented for the latest version yet (2010.3.1110.35).  I have a range chart with multiple series.  If I zoom in, then only the data points that are in the viewable range are used in generating the range series.  However, this seriously distorts the graph in the process, and this will not work for my project.  Any other work-arounds?
0
Vladimir Milev
Telerik team
answered on 07 Dec 2010, 09:34 AM
Hello Daniel,

Although we have planned our complete backlog for Q1 release we will do our best to squeeze in this fix. I have logged the issue in PITS so you can track its progress and vote for it.

Best wishes,
Vladimir Milev
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
Chart
Asked by
Dr. Hartmut Kocher
Top achievements
Rank 1
Answers by
Dr. Hartmut Kocher
Top achievements
Rank 1
Vladimir Milev
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or