Can I avoid this behaviour ? the set Axisrange seems to be only used when there is a series. After the last series is removed , the RangeMin on X ist set to 1.1.1974 and RangeMax to 1.1.2011 ?
Hi,
Have you tried setting the following chart properties to restrict the chart axis range:
chart.Axis.X.RangeType = AxisRangeType.Custom;chart.Axis.X.RangeMin = -20;chart.Axis.X.RangeMax = 20;
Let me know if this helps.
Thanks.
Yes, Rangetype, RangeMin and RangeMax are definetly set. But as soon as there is either no curve shown or their is no bound data, the xAxis begins at 1.1.1974 and ends at 1.1.2011.
Are you using a composite chart? If so, note that in the composite charts there are custom axis and you have to find the right one. This could be something like:
AxisItem axisItem = ultraChart1.CompositeChart.ChartAreas[0].Axes[0];
Then you could set its appropriate properties with the desired values.
Yes a composite one. But there is only one X-axis, and 3 y-Axis.
And the x-axis is set regarding range-min,-max and -type. As soon as a curve is enabled, the ranges are used.
I have managed to reproduce the problem with Time axis and logged it as a bug under the number of 36585 in our system. I suppose it will be fixed in the next version of the control. If you have some further question concerning its status, you could contact our support guys.
Hi again,
As a workaround for the moment you could just clear the data when there is only one layer left:
this.ultraChart1.CompositeChart.ChartLayers[0].Series.Clear();