Series names in bar charts

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Mercury
Newbie
Newbie
Posts: 7
Joined: Wed Jul 11, 2001 4:00 am

Series names in bar charts

Post by Mercury » Thu Jun 09, 2005 6:29 am

We’re currently using TeeChart 5.02 (for Delphi 6) and we have some problem with long series names in bars chart.

When ever the chart form is large enough the names are written below the bottom axis, even if it makes the graph very small. In other cases the titles are written above the bars, and can’t be clearly read.

We tried changing the Chart's BottomAxis.LabelMultiLines property to true (both through the code and the run time properties form) but we didn’t see any change.

Does this property (LabelsMultiLines) work? Do you have any other idea we can solve our problem with?

I have some screenshots that demonstrate this problem, but I didn't find a way to atached them to this post.

Thanks,
Michal Maor,
Mercury.[/img]

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 09, 2005 1:08 pm

Hi Michal,

Yes, you are right. It seems not being working. However you can use TeeSplitInLines method at OnGetAxisLabel method as shown here:

Code: Select all

procedure TForm1.Chart1GetAxisLabel(Sender: TChartAxis;
  Series: TChartSeries; ValueIndex: Integer; var LabelText: String);
begin
        TeeSplitInLines(LabelText,' ');
end;
In the example it will split lines when there's a blank space.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply