Nested collections of different lengths

3 posts, 0 answers
  1. Jean-Francois
    Jean-Francois avatar
    2 posts
    Member since:
    Apr 2012

    Posted 13 Apr 2012 Link to this post

    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. Jean-Francois
    Jean-Francois avatar
    2 posts
    Member since:
    Apr 2012

    Posted 13 Apr 2012 Link to this post

    Seems adding an extra data with an X at the end of both collections does the job.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Yavor
    Admin
    Yavor avatar
    401 posts

    Posted 18 Apr 2012 Link to this post

    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 >>

Back to Top