mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-23 21:39:31 +01:00
TAChart: Add TeeChart-compatible THorizBarSeries class
git-svn-id: trunk@36922 -
This commit is contained in:
parent
7972cf7f51
commit
c2a1945430
@ -43,14 +43,32 @@ type
|
|||||||
property MarginTop: TChartDistance index 2 read GetMargin write SetMargin;
|
property MarginTop: TChartDistance index 2 read GetMargin write SetMargin;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TPointerSeries = class(TLineSeries)
|
TPointSeries = class(TLineSeries)
|
||||||
published
|
published
|
||||||
property LineType default ltNone;
|
property LineType default ltNone;
|
||||||
property ShowPoints default true;
|
property ShowPoints default true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
THorizBarSeries = class(TBarSeries)
|
||||||
|
public
|
||||||
|
// Swap X and Y as TeeChart does.
|
||||||
|
function AddXY(
|
||||||
|
AX, AY: Double; AXLabel: String = ''; AColor: TChartColor = clTAColor): Integer; overload; inline;
|
||||||
|
published
|
||||||
|
property AxisIndexX default 0;
|
||||||
|
property AxisIndexY default 1;
|
||||||
|
end;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
{ THorizBarSeries }
|
||||||
|
|
||||||
|
function THorizBarSeries.AddXY(
|
||||||
|
AX, AY: Double; AXLabel: String; AColor: TChartColor): Integer;
|
||||||
|
begin
|
||||||
|
Result := inherited AddXY(AY, AX, AXLabel, AColor);
|
||||||
|
end;
|
||||||
|
|
||||||
{ TChartTeeChart }
|
{ TChartTeeChart }
|
||||||
|
|
||||||
function TChartTeeChart.GetAxisByAlign1(AIndex: TChartAxisAlignment): TChartAxis;
|
function TChartTeeChart.GetAxisByAlign1(AIndex: TChartAxisAlignment): TChartAxis;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user