Hi
I have 12 box plots (Months- ie - Jan to Dec) - how do I get the bottom axis to show the month name, I guess I am missing something, but I am struggling to find it!
Thanks Richard
Axis lables for Box plots
Re: Axis lables for Box plots
Hello Richard,
I recommend you use custom labels, assign to for each series its label. You can do something similar as next code:
Could you please, tell us if previous code works as you want?
I hope will helps.
Thanks,
I recommend you use custom labels, assign to for each series its label. You can do something similar as next code:
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
Chart1.View3D:=false;
Chart1.Axes.Bottom.Items.Clear;
for i:=0 to 11 do
begin
with Chart1.AddSeries(TBoxSeries) as TBoxSeries do
begin
FillSampleValues();
Position:=i;
Title:='Month ' + IntToStr(i);
Chart1.Axes.Bottom.Items.Add(Position, Title);
end;
end;
Chart1.Axes.Bottom.LabelsAngle:= 90;
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 |
Instructions - How to post in this forum |
Re: Axis lables for Box plots
Yes - thanks. I have got it working OK now.
Richard
Richard