This question is locked. New answers and comments are not allowed.
Hello,
I am trying to set custom item labels at various points underneath a line chart. I am setting the "Value" property of each ChartAxisItem to the x location I want, but instead the chart is simply finding the maximum value and drawing each label equidistant from each other, regardless of the setting of "Value". Do you know how I can get the effect I want? Isn't "Value" supposed to place the ChartAxisItem at that X location?
Here is some code for example:
I am trying to set custom item labels at various points underneath a line chart. I am setting the "Value" property of each ChartAxisItem to the x location I want, but instead the chart is simply finding the maximum value and drawing each label equidistant from each other, regardless of the setting of "Value". Do you know how I can get the effect I want? Isn't "Value" supposed to place the ChartAxisItem at that X location?
Here is some code for example:
radChart1.PlotArea.XAxis.AutoScale = false; var csTest = new ChartSeries(); for (int i = 1; i <= 10; i++) { csTest.Items.Add(new ChartSeriesItem(i, i)); } radChart1.AddChartSeries(csTest); radChart1.PlotArea.XAxis.AddItem(new ChartAxisItem("Item 1") { Value = 1 }); radChart1.PlotArea.XAxis.AddItem(new ChartAxisItem("Item 2") { Value = 2 }); radChart1.PlotArea.XAxis.AddItem(new ChartAxisItem("Item 10") { Value = 10 }); // ^^ these are all spaced equidistantally, not according to their "Value"