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

Multi Series Line Chart Issue

1 Answer 107 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 21 Mar 2013, 05:51 PM
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?

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 26 Mar 2013, 12:12 PM
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.

Tags
ChartView
Asked by
Dave
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or