Border of stacked bars

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Timo
Newbie
Newbie
Posts: 12
Joined: Wed Jul 11, 2007 12:00 am
Contact:

Border of stacked bars

Post by Timo » Mon Aug 23, 2010 4:11 pm

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
Attachments
Projekte.rar
(2.29 KiB) Downloaded 486 times

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Border of stacked bars

Post by Yeray » Tue Aug 24, 2010 10:08 am

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Timo
Newbie
Newbie
Posts: 12
Joined: Wed Jul 11, 2007 12:00 am
Contact:

Re: Border of stacked bars

Post by Timo » Tue Aug 24, 2010 10:14 am

Thanks!

Post Reply