Hi
This sounds really an easy problem to fix, and I'm more than a little embarrassed to ask for a solution but...
When I plot any type of bar series I almost invariably end up with the final bar on the right hand side incomplete - its usually a slither of a bar thats no more than half the width it should be. How can I ensure that the final bar is the full width?
Bruce.
Bar Chart - incomplete bar
Re: Bar Chart - incomplete bar
Hi Bruce,
If I just create a TBarSeries,
it looks fine to me:
So I guess you have set some property in the bottom axis that is cutting it.
Ie, if I set a maximum in the bottom axis:
If we force the axis maximum as above, then the chart isn't adding any extra margin to fit the bar width:
In that case, you can use MaximumOffset property to manually set an extra margin and avoid that:
If this isn't helping you, please arrange a simple example project we can run as-is to reproduce the problem here.
If I just create a TBarSeries,
Code: Select all
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.AddSeries(TBarSeries).FillSampleValues();
end;
Ie, if I set a maximum in the bottom axis:
Code: Select all
Chart1.Axes.Bottom.AutomaticMaximum:=False;
Chart1.Axes.Bottom.Maximum:=5;
Code: Select all
Chart1.Axes.Bottom.MaximumOffset:=35;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Bar Chart - incomplete bar
Hi Yeray
That's the property I was looking for and forgot!
Thanks a lot.
Bruce.
That's the property I was looking for and forgot!
Thanks a lot.
Bruce.