Page 1 of 1

Border of stacked bars

Posted: Mon Aug 23, 2010 4:11 pm
by 10546060
Hi,

I found a small bug. The border of a stacked bar is displayed in the color of the series if the value is 0. That is a bit confusing.

I'm using 8.06.

Cheers,
Timo

Re: Border of stacked bars

Posted: Tue Aug 24, 2010 10:08 am
by yeray
Hi Timo,

I could reproduce the problem so I've added it to the defect list to be fixed in future releases (TV52015106).
Note that it only happens in 2D.
And also note that as a workaround you could loop into your series and set as nulls those zero points:

Code: Select all

uses series;

procedure TForm1.FormCreate(Sender: TObject);
var bar1, bar2: TBarSeries;
    i, j: Integer;
begin
  Chart1.View3D:=CheckBox1.Checked;

  bar1:=Chart1.AddSeries(TBarSeries) as TBarSeries;

  bar1.Add(0);
  bar1.Add(10);

  bar1.Pen.Width:=20;

//workaround
{  for i:=0 to Chart1.SeriesCount-1 do
    for j:=0 to Chart1[i].Count-1 do
      if Chart1[i].YValues[j] = 0 then
        Chart1[i].SetNull(j);  }
end;

procedure TForm1.CheckBox1Click(Sender: TObject);
begin
  Chart1.View3D:=CheckBox1.Checked;
end;

Re: Border of stacked bars

Posted: Tue Aug 24, 2010 10:14 am
by 10546060
Thanks!