Page 1 of 1

Right axis problem

Posted: Wed Jun 10, 2009 8:57 am
by 10552947
Hi

I would like to draw the red windflags (see image example on http://external.meteo.nl/temp/example.PNG) on the right axis. This right axis is shifted 30pix to the right, so not attached to the "original drawing area" of the graph. To draw the lines I'm using the TLineSeries object right now and I only can manage to draw them inside that area. How can I do that? Is there a certain setting for that?

I'm using TeeChart 8.04 VCL/CLX

Cheers
Karsten

Posted: Wed Jun 10, 2009 10:07 am
by yeray
Hi Karsten,

To allow the series to be drawn offside of the Chart boundaries:

Code: Select all

Chart1.ClipPoints := false;
If that's not what you are looking for, I'm afraid that the only solution I can think is to draw directly to the canvas in OnAfterDraw event.

Posted: Wed Jun 10, 2009 11:42 am
by 10552947
Hi Yeray

Thanks for the quick answer. Unfortunatly Chart->ClipPoints = false; works only for all of the series and not just for a specific one. As you can see I draw a lot of lineseries in the example and they are ALL offside the chart boundaries as soon as I set Clippoints to false.
Even drawing the windflags last won't do the trick.

I'll use the OnAfterDraw event to draw the windflags on the correct position.

Cheers
Karsten

Posted: Wed Jun 10, 2009 1:08 pm
by yeray
Hi Karsten,

You'll find many examples of similar things in the forums. You should use CalcXPos and CalcYPos axes methods to retrieve the pixels where you want to draw your lines.

I you find any trouble on this, please don't hesitate to let us know.