Right axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Right axis

Post by franckgar » Thu Aug 04, 2005 12:46 pm

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

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

Post by Pep » Fri Aug 05, 2005 1:51 am

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;

franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Post by franckgar » Fri Aug 05, 2005 7:03 am

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

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

Post by Pep » Fri Aug 05, 2005 2:05 pm

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 ?

franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Post by franckgar » Mon Aug 08, 2005 9:45 am

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

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

Post by Pep » Tue Aug 09, 2005 10:38 am

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.

Post Reply