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

Duplicate XCategory values in line chart

1 Answer 57 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Mike Shilkov
Top achievements
Rank 1
Mike Shilkov asked on 20 Jul 2012, 02:37 PM
Image I've got the following data:
X        Y
23:00  1
23:00  2
23:01  3
23:01  4
23:01  5
23:02  6
23:02  5
etc

Now I want to show them in Line Chart, so that X is X axis, and Y is Y.
A set the XCategory to X and YValue to Y.
However, I only see the distinct values of X, like
23:00 0
23:01 3
23:02 6

How do I "ungroup" them?

Same question about ChartView control with a LineSeries with duplicated X data.

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 25 Jul 2012, 06:43 AM
Hello Mike,

In RadChart you have two options. First you can remove the XCategory ItemMapping. Depending on the scenario, this might not be a good option. The second suggestion I can make is to set the FieldName of the ItemMapping to correspond to some unique ID property.

In RadChartView when you have two items with the same category, they are being clustered. If this is not the desired effect, simply set the CategoryBinding to be the name of some unique ID property.

Greetings,
Petar Marchev
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart
Asked by
Mike Shilkov
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or