Duplicate XCategory values in line chart

2 posts, 1 answers
  1. Mike Shilkov
    Mike Shilkov avatar
    30 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
    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.
  2. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    968 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.

    Greetings,
    Petar Marchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top