mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 23:20:26 +02:00
TAChart: Revert to setting AxisIndexX/AxinsIndexY properties directly
* since they are not published in some descendants. git-svn-id: trunk@36928 -
This commit is contained in:
parent
d63ad33c4e
commit
140d76e610
@ -56,6 +56,7 @@ type
|
|||||||
function AddXY(
|
function AddXY(
|
||||||
AX, AY: Double; AXLabel: String = '';
|
AX, AY: Double; AXLabel: String = '';
|
||||||
AColor: TChartColor = clTAColor): Integer; overload; inline;
|
AColor: TChartColor = clTAColor): Integer; overload; inline;
|
||||||
|
constructor Create(AOwner: TComponent); override;
|
||||||
published
|
published
|
||||||
property AxisIndexX default 0;
|
property AxisIndexX default 0;
|
||||||
property AxisIndexY default 1;
|
property AxisIndexY default 1;
|
||||||
@ -180,6 +181,12 @@ begin
|
|||||||
Result := inherited AddXY(AY, AX, AXLabel, AColor);
|
Result := inherited AddXY(AY, AX, AXLabel, AColor);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
constructor THorizBarSeries.Create(AOwner: TComponent);
|
||||||
|
begin
|
||||||
|
inherited Create(AOwner);
|
||||||
|
SetPropDefaults(Self, ['AxisIndexX', 'AxisIndexY']);
|
||||||
|
end;
|
||||||
|
|
||||||
{ TChartTeeChart }
|
{ TChartTeeChart }
|
||||||
|
|
||||||
function TChartTeeChart.GetAxisByAlign1(AIndex: TChartAxisAlignment): TChartAxis;
|
function TChartTeeChart.GetAxisByAlign1(AIndex: TChartAxisAlignment): TChartAxis;
|
||||||
|
@ -309,8 +309,9 @@ constructor TCustomChartSeries.Create(AOwner: TComponent);
|
|||||||
begin
|
begin
|
||||||
inherited Create(AOwner);
|
inherited Create(AOwner);
|
||||||
FActive := true;
|
FActive := true;
|
||||||
|
FAxisIndexX := DEF_AXIS_INDEX;
|
||||||
|
FAxisIndexY := DEF_AXIS_INDEX;
|
||||||
FLegend := TChartSeriesLegend.Create(FChart);
|
FLegend := TChartSeriesLegend.Create(FChart);
|
||||||
SetPropDefaults(Self, ['AxisIndexX', 'AxisIndexY']);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TCustomChartSeries.Destroy;
|
destructor TCustomChartSeries.Destroy;
|
||||||
|
Loading…
Reference in New Issue
Block a user