THorizBarSeries And Labels

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Friis
Newbie
Newbie
Posts: 23
Joined: Mon May 07, 2012 12:00 am

THorizBarSeries And Labels

Post by Friis » Mon Dec 03, 2012 9:38 am

Hi

Why Can't I see the Labels on the HorizBarSeries??

The Labels are only visible for only for two of the bars in the ThorizBar. For the remaining bars, the labels are hidden below the bars??
Attachments
THorizBarSeries.JPG
THorizBarSeries.JPG (187.25 KiB) Viewed 1539 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: THorizBarSeries And Labels

Post by Sandra » Mon Dec 03, 2012 12:02 pm

Hello Friis,
Why Can't I see the Labels on the HorizBarSeries??

The Labels are only visible for only for two of the bars in the ThorizBar. For the remaining bars, the labels are hidden below the bars??


When you work with stack bars, the marks of bars are hidden bellow bars, except the last bar you draw, to achieve that you can see all marks of bars series you need enable the property of Marks OnTop for each series that allow you access in all marks. You can do something as next code:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D:=false;
Series1.FillSampleValues(3);
Series2.FillSampleValues(3);
Series3.FillSampleValues(3);
Series1.MultiBar :=mbStacked;
Series1.Marks.OnTop:=True;
Series2.Marks.OnTop:=True;
Series3.Marks.OnTop:=True;
end;

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / 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

Friis
Newbie
Newbie
Posts: 23
Joined: Mon May 07, 2012 12:00 am

Re: THorizBarSeries And Labels

Post by Friis » Mon Dec 03, 2012 2:00 pm

Hi Sandre,

That works fantastic - Thank you!!

Can I move the label so that it is located on center for each bar??

As shown on the attached bar; the labels are located next to the individual bars; I would like to have the marks located on the center of each bar?
Attachments
ScreenDump2.JPG
ScreenDump2.JPG (214.58 KiB) Viewed 1488 times

Yeray
Site Admin
Site Admin
Posts: 8746
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: THorizBarSeries And Labels

Post by Yeray » Mon Dec 03, 2012 4:05 pm

Hi Friis,

Give it a try to the MarksOnBar and MarksLocation properties:
http://www.teechart.net/support/viewtop ... bar#p59286
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply