Multi Series Line Chart Issue

2 posts, 0 answers
  1. Dave
    Dave avatar
    29 posts
    Member since:
    Aug 2010

    Posted 21 Mar 2013 Link to this post

    I have a Line Chart with two series, the problem is one of my series has two data points with Category values that do not exist in the first series. When I create each of these series using GenericDataPointBinding expressions, the 2nd series renders "off" because the two Category values get tacked on out of order at the end of the graph instead of being inserted in order (see this image).

    Is there a way to prevent this outside of forcing each series to have exactly the same Categories?
  2. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 26 Mar 2013 Link to this post

    Hello Dave,

    According to the image you have shared, it seems like the order of your categories is different than the one used for the first series which have more data points than the other. If this is correct, could you try rearrange the order of your data points so it matches the one used in the other series. Also, are you using different ItemsSource for each series or it is the same for both.

    I have prepared and attached a sample example demonstrating a scenario similar to yours. Could you update it or send us a sample of yours reproducing the issue so we could provide you with a better solution in case the one above does not work for you. Please note that this is a forum thread and you should use a third party web site for files upload and sharing or you could simply log a support ticket and attach the sample there.

    Kind regards,
    Peshito
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top