mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 15:39:49 +02:00
TAChart: Consult BarSeries.ZeroLevel when calculating label direction
git-svn-id: trunk@30587 -
This commit is contained in:
parent
c1d175456c
commit
88a88c1b2b
@ -73,6 +73,7 @@ type
|
||||
protected
|
||||
procedure GetLegendItems(AItems: TChartLegendItems); override;
|
||||
function GetSeriesColor: TColor; override;
|
||||
function GetZeroLevel: Double; override;
|
||||
public
|
||||
procedure Assign(ASource: TPersistent); override;
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
@ -885,6 +886,11 @@ begin
|
||||
Result := FBarBrush.Color;
|
||||
end;
|
||||
|
||||
function TBarSeries.GetZeroLevel: Double;
|
||||
begin
|
||||
Result := ZeroLevel;
|
||||
end;
|
||||
|
||||
function TBarSeries.IsZeroLevelStored: boolean;
|
||||
begin
|
||||
Result := ZeroLevel <> 0.0;
|
||||
@ -1001,6 +1007,7 @@ var
|
||||
else
|
||||
Result.Y := ACoord;
|
||||
end;
|
||||
|
||||
var
|
||||
i, j, n2, numPrevPts: Integer;
|
||||
a, b: TDoublePoint;
|
||||
|
Loading…
Reference in New Issue
Block a user