Duplicate values in Axis Y

3 posts, 0 answers
  1. Gautam
    Gautam avatar
    4 posts
    Member since:
    Sep 2010

    Posted 09 Mar 2011 Link to this post

    Hi telerik team,

    I tried to display a chart with datapoints having YValues of 1 and 2 and the chart is generated with duplicate Y values as 1,1,1,1, 2,2,2,2. I am using the ItemsSource property to bind the chart data series. (Please find the attached screen shots).

    Is there a way to avoid these duplicate values? 
  2. Rahul
    Rahul avatar
    118 posts
    Member since:
    Feb 2011

    Posted 10 Mar 2011 Link to this post

    I'm also working on Multiple y axis. Can u please share your code with me for multiple Y-axis.
    Thanks in advance.
  3. Evgenia
    Evgenia avatar
    1437 posts

    Posted 14 Mar 2011 Link to this post


    @Gautam - I couldn't reproduce the issue you are facing. You can see a sample image attached created with the following code and the AxisY doesn't visualize duplicated Y values:
    public partial class Example : UserControl
           public Example()
               List<Manufacturer> data = new List<Manufacturer>();
               data.Add(new Manufacturer("Immediate or Cycle Error Stop Count", 2));
               data.Add(new Manufacturer("Transport Error Count", 1));
               SeriesMapping seriesMapping = new SeriesMapping();
               seriesMapping.ItemMappings.Add(new ItemMapping("Name", DataPointMember.XCategory));
               seriesMapping.ItemMappings.Add(new ItemMapping("Value", DataPointMember.YValue));
               RadChart1.DefaultView.ChartArea.AxisX.LayoutMode = AxisLayoutMode.Inside;
               this.RadChart1.ItemsSource = data; 
           public class Manufacturer
               public Manufacturer(string name, int value)
                   this.Name = name;
                   this.Value = value;
               public string Name
               public int Value

    The Chart is databound using the Manual Series Mappings.
    @Rahul - you can find our help topic with source code helpful for creating RadChart with Multiple Y Axes.

    All the best,
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top