Custom axes bugs are still in

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
nico193
Newbie
Newbie
Posts: 20
Joined: Thu Jun 05, 2003 4:00 am
Contact:

Custom axes bugs are still in

Post by nico193 » Thu Jan 15, 2004 1:29 pm

- 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 ?

nico193
Newbie
Newbie
Posts: 20
Joined: Thu Jun 05, 2003 4:00 am
Contact:

Post by nico193 » Thu Jan 15, 2004 3:26 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jan 19, 2004 3:33 pm

>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);

Post Reply