XAxis offset error

Thread is closed for posting
2 posts, 0 answers
  1. Mark
    Mark avatar
    23 posts
    Member since:
    Apr 2007

    Posted 26 May 2008 Link to this post

    I am trying to implement a simple chart with the following code:

    RadChart1.Width = 750;

    RadChart1.Height = 126;

    RadChart1.PlotArea.XAxis.IsZeroBased =

    false;

    RadChart1.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.

    ChartAxisLayoutMode.Normal;

    RadChart1.PlotArea.XAxis.AutoScale =

    true;

    ChartSeries serie = new ChartSeries();

    serie.Type =

    ChartSeriesType.Bar;

    serie.Appearance.BarWidthPercent = 5M;

    for (int i = 0; i < 5; i++)

    {

    ChartSeriesItem item = new ChartSeriesItem();

    item.XValue = i;

    item.YValue = i;

    serie.AddItem(item);

    }

    RadChart1.Series.Add(serie);

    serie.PlotArea.IntelligentLabelsEnabled =

    true;


    and I receive a chart with all points in the series having an offset to the left with regards to the major ticks on the x-axis line. When making the series include more points (~140) the offset gets to ~7 points from the ticks on the x-axis???

  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 28 May 2008 Link to this post

    Hello Mark,

    I am afraid you have hit a bug in RadChart. It seems that bar series are not positioned correctly when setting XValue. I have already notified our developers of this issue, so they will investigate it.

    Please, accept our apologies for the inconvenience caused. Your Telerik points have been updated for pointing this issue.

    All the best,
    Ves
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top