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

Nested collections of different lengths

2 Answers 19 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jean-Francois
Top achievements
Rank 1
Jean-Francois asked on 13 Apr 2012, 02:15 PM
Hi,

I am using 2 nested collections in a graph, the first of which contains 3 series of identical length (x ranges from 0-220) and the second collection has 1 series that ranges from 0-450 in x values. In other words, my two collections do not have the same amount of points in them.

When I display the graph, all is fine except when I start using the ZoomScrolling feature. I use the default sampling of 200 points but when I zoom between x=100-240 the 200 sample points are all on the left side for the first 3 collections and all on the right side for the last collection. There are no points in the middle! The first three collections should be spread out between 100 and 220 and the last collection should have its samples spread out evenly across the zoomed part of the screen (see attached snapshot of full graph and zoomed part of graph).

Is this a known issue? Is there a workaround? I am using 2011.2.920.35 in Visual Studio 2010 in a WPF project.

Thanks

2 Answers, 1 is accepted

Sort by
0
Jean-Francois
Top achievements
Rank 1
answered on 13 Apr 2012, 04:36 PM
Seems adding an extra data with an X at the end of both collections does the job.
0
Yavor
Telerik team
answered on 18 Apr 2012, 12:46 PM
Hi Jean-Francois,

Another solution to this problem is turning off auto range of your X axis and using manual range.

Greetings,
Yavor
the Telerik team

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

Tags
Chart
Asked by
Jean-Francois
Top achievements
Rank 1
Answers by
Jean-Francois
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or