Page 1 of 1

THorizBarSeries And Labels

Posted: Mon Dec 03, 2012 9:38 am
by 16462341
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??

Re: THorizBarSeries And Labels

Posted: Mon Dec 03, 2012 12:02 pm
by 10050769
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,

Re: THorizBarSeries And Labels

Posted: Mon Dec 03, 2012 2:00 pm
by 16462341
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?

Re: THorizBarSeries And Labels

Posted: Mon Dec 03, 2012 4:05 pm
by yeray
Hi Friis,

Give it a try to the MarksOnBar and MarksLocation properties:
http://www.teechart.net/support/viewtop ... bar#p59286