I am trying to implement a simple chart with the following code:
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???
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???