I have a chart with zoom enabled and AxisArrows for both the X and Y axes.
If I zoom in and then click on any of the AxisArrows, the chart moves fine. I have a 'Zoom Out' button on my form that basically calls tChart1.Zoom.Undo(), but since I moved the chart around with the arrows, the undo zoom no longer views the whole graph.
Is there a way to undo the axis arrow clicks?
Thanks
Possible to undo AxisArrow moves?
SORRY!
I just found a post that solved my problem.
http://www.teechart.net/support/viewtopic.php?t=4397
I just found a post that solved my problem.
http://www.teechart.net/support/viewtopic.php?t=4397
narcis wrote:Hi Brian,
Thanks for the example, yes, you are right, however you can easily solve that by setting axes to automatic scalling when undoing zoom:
Code: Select all
private void tChart1_UndoneZoom(object sender, EventArgs e) { for (int i = 0; i < tChart1.Axes.Count; i++) { tChart1.Axes[i].Automatic = true; } }