mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 08:52:41 +02:00
TAChart: Draw rotated bar series
git-svn-id: trunk@24083 -
This commit is contained in:
parent
bbd5e80654
commit
3ec9c78ab6
@ -725,8 +725,11 @@ begin
|
||||
ACanvas.Brush.Assign(BarBrush);
|
||||
for i := 0 to Count - 1 do begin
|
||||
p := GetGraphPoint(i);
|
||||
w := CalcBarWidth(p.X, i);
|
||||
graphBar := DoubleRect(p.X - w, 0, p.X + w, p.Y);
|
||||
w := CalcBarWidth(GetGraphPointX(i), i);
|
||||
if IsRotated then
|
||||
graphBar := DoubleRect(0, p.Y - w, p.X, p.Y + w)
|
||||
else
|
||||
graphBar := DoubleRect(p.X - w, 0, p.X + w, p.Y);
|
||||
if not RectIntersectsRect(graphBar, ext2) then continue;
|
||||
|
||||
with imageBar do begin
|
||||
|
Loading…
Reference in New Issue
Block a user