Recent

Author Topic: [Solved] Stacked bars not drawn properly when using TChartStyles  (Read 355 times)

apeoperaio

  • Sr. Member
  • ****
  • Posts: 293
Dear all,
Using TChartStyles to color the stacked bars, the top border is not drawn properly when the top segment has a value of 0.
Instead of drawing a black line on the top, the top line is drawn with the color of the top segment.

Same behaviour on Windows, Linux (GTK2) and MacOS (Cocoa).

See attached image and sample project.

Any suggestion?

Lazarus 4.4 (rev lazarus_4_4) FPC 3.2.2 aarch64-darwin-cocoa
« Last Edit: January 16, 2026, 11:09:42 am by apeoperaio »

wp

  • Hero Member
  • *****
  • Posts: 13352
Re: Stacked bars not drawn properly when using TChartStyles
« Reply #1 on: January 15, 2026, 11:51:42 am »
Committed a modified bar series in which zero-height bars are not drawn at all. The new version is in Laz/main, so far, waiting for further testing by you and others. Later it will be backported to fixes and v4.6 (if I don't forget...)

apeoperaio

  • Sr. Member
  • ****
  • Posts: 293
Re: Stacked bars not drawn properly when using TChartStyles
« Reply #2 on: January 15, 2026, 12:57:01 pm »
Thank you! Super fast as usual.
I tested on main and it works.
Looking forward to see the patch in the fixes too.

wp

  • Hero Member
  • *****
  • Posts: 13352
Re: Stacked bars not drawn properly when using TChartStyles
« Reply #3 on: January 16, 2026, 10:57:01 am »
Cherry-picked to FIXES (--> the fix will be contained in the next Lazarus relese version).

 

TinyPortal © 2005-2018