Page 1 of 1

Custom axes bugs are still in

Posted: Thu Jan 15, 2004 1:29 pm
by 8120354
- The minimum offset and maximum offset offset properties for a custom axis are still not working with the latest release (24/12/2003). I've read in this forum it should ?

- The zoom does not work on custom axes. Somebody from TeeChart said we have to use firstVisible and lastVisible properties on series to make it work. These properties are still not visible from my code (they seem to be declared "protected"). So ?

Posted: Thu Jan 15, 2004 3:26 pm
by 8120354
Found a way to make correct zooms with custom axes :

In the zoomed event, just call for each custom axis :

myVerticalCustomAxis.SetMinMax(
myVerticalCustomAxis.CalcPosPoint (Chart1.Zoom.y1), myVerticalCustomAxis.CalcPosPoint(Chart1.Zoom.y0));

So only one question left :
How do I do to make minimum offset and maximum offset behave correctly ??

Thanks for answering

Posted: Mon Jan 19, 2004 3:33 pm
by Pep
>So only one question left :
>How do I do to make minimum offset and maximum offset behave >correctly ??

A workaround for the moment is to use something like the following code :

Code: Select all

double offset = line1.YValues.Maximum * 0.1;
tChart1.Axes.Custom[0].SetMinMax(line1.XValues.Minimum - offset, line1.XValues.Maximum + offset);