Page 1 of 1
Right axis
Posted: Thu Aug 04, 2005 12:46 pm
by 9339785
Hi,
I have a problem with the negative values of the right axis : the sign is too near of the axis as you can see it on this picture :
http://cjoint.com/?iepuB3CZw7
Do you have a solution for this probem ?
Thanks
Franck
Posted: Fri Aug 05, 2005 1:51 am
by Pep
Hi Franck,
one trick could be to make much large the Ticks :
Code: Select all
Chart1.Axes.Right.TickLength:=20;
Chart1.Axes.Right.Ticks.Color := Form1.Color;
.. or another one could be to add extra spaces in the Axis Labels :
Code: Select all
procedure TForm1.Chart1GetAxisLabel(Sender: TChartAxis;
Series: TChartSeries; ValueIndex: Integer; var LabelText: String);
begin
if Sender = Chart1.Axes.Right then
Labeltext := ' ' + LabelText;
end;
Posted: Fri Aug 05, 2005 7:03 am
by 9339785
I have tested the second solution (with the same syntax as yours) .... but an exception is generated at each call to the function Chart1GetAxisLabel(). It is the same on your side ?
I'm working with TeeChart VCL v7.04.
Franck
Posted: Fri Aug 05, 2005 2:05 pm
by Pep
Hi, Franck,
not, it's working fine here. Does the exception appears just creating a new app. with just one Series and this event with the same code ?
If so, could you please send me this app. directly to
pep@steema.com and I'll take a look ?
Posted: Mon Aug 08, 2005 9:45 am
by 9339785
no, the exception appears on an existing application. I'm using severals event of the chart (OnAfterDraw, OnCick, OnClickLegend, OnResize, OnMouseMove, OnZoom, OnDblClick) and ticks axes are display as 'value'.
(sorry I can not send you the source of my application).
Any ideas ?
Franck
Posted: Tue Aug 09, 2005 10:38 am
by Pep
Hi Franck,
Any ideas ?
Difficult without being able to reproduce it here. If you can create a simple app. with which I can reproduce the problem send me it directly to
pep@steema.com and I'll take a look.