Page 1 of 1

Bar y-axis origo misplaced when positive and negative bars

Posted: Mon Apr 02, 2007 12:34 pm
by 9340513
Hello Steema,

When I create a chart with bars in both positive and negative directions, the y-axis origo gets misplaced. This can be fixed by adjusting y-axis scale maximum offset (???). I am using version 7.0.7 with Delphi 2006.
Is there a workaround or will this problem get fixed in the next version ?

Best regards,
Lasse Koskinen

Posted: Mon Apr 02, 2007 2:50 pm
by narcis
Hi Lasse,

I'm not able to reproduce the issue here dropping a TChart in a form and using the code below. Could you please modify it or send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Code: Select all

uses Series;

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
    Series1: TBarSeries;
begin
  Series1:=TBarSeries.Create(self);
  Chart1.AddSeries(Series1);
  Series1.YOrigin:=0;
  Series1.UseYOrigin:=true;

  for i:=-5 to 5 do Series1.Add(i);
end;