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

XAxis offset error

1 Answer 43 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 26 May 2008, 03:11 PM
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???

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 28 May 2008, 12:17 PM
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
Tags
Chart (Obsolete)
Asked by
Mark
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or