mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-25 21:56:19 +02:00
TAChart: Remove redunant checks for YCount when adding data points to built-in listsource of a series.
git-svn-id: trunk@60452 -
This commit is contained in:
parent
df925c15ce
commit
647cf1e646
@ -475,7 +475,6 @@ end;
|
|||||||
function TBubbleSeries.AddXY(AX, AY, ARadius: Double; AXLabel: String;
|
function TBubbleSeries.AddXY(AX, AY, ARadius: Double; AXLabel: String;
|
||||||
AColor: TColor): Integer;
|
AColor: TColor): Integer;
|
||||||
begin
|
begin
|
||||||
if ListSource.YCount < 2 then ListSource.YCount := 2;
|
|
||||||
Result := AddXY(AX, AY, [ARadius], AXLabel, AColor);
|
Result := AddXY(AX, AY, [ARadius], AXLabel, AColor);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -908,7 +907,6 @@ function TBoxAndWhiskerSeries.AddXY(
|
|||||||
AX, AYLoWhisker, AYLoBox, AY, AYHiBox, AYHiWhisker: Double; AXLabel: String;
|
AX, AYLoWhisker, AYLoBox, AY, AYHiBox, AYHiWhisker: Double; AXLabel: String;
|
||||||
AColor: TColor): Integer;
|
AColor: TColor): Integer;
|
||||||
begin
|
begin
|
||||||
if ListSource.YCount < 5 then ListSource.YCount := 5;
|
|
||||||
Result := AddXY(
|
Result := AddXY(
|
||||||
AX, AYLoWhisker, [AYLoBox, AY, AYHiBox, AYHiWhisker], AXLabel, AColor);
|
AX, AYLoWhisker, [AYLoBox, AY, AYHiBox, AYHiWhisker], AXLabel, AColor);
|
||||||
end;
|
end;
|
||||||
@ -1291,8 +1289,6 @@ function TOpenHighLowCloseSeries.AddXOHLC(
|
|||||||
var
|
var
|
||||||
y: Double;
|
y: Double;
|
||||||
begin
|
begin
|
||||||
if ListSource.YCount < 4 then ListSource.YCount := 4;
|
|
||||||
|
|
||||||
if YIndexOpen = 0 then
|
if YIndexOpen = 0 then
|
||||||
y := AOpen
|
y := AOpen
|
||||||
else if YIndexHigh = 0 then
|
else if YIndexHigh = 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user