Duplicate XCategory values in line chart

2 posts, 1 answers
  1. Mike Shilkov
    Mike Shilkov avatar
    33 posts
    Member since:
    Apr 2010

    Posted 20 Jul 2012 Link to this post

    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

    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.
  2. Answer
    Petar Marchev
    Petar Marchev avatar
    1029 posts

    Posted 25 Jul 2012 Link to this post

    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.

    Petar Marchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top