mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 15:39:20 +02: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;
|
||||
end;
|
||||
|
||||
TPointerSeries = class(TLineSeries)
|
||||
TPointSeries = class(TLineSeries)
|
||||
published
|
||||
property LineType default ltNone;
|
||||
property ShowPoints default true;
|
||||
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
|
||||
|
||||
{ THorizBarSeries }
|
||||
|
||||
function THorizBarSeries.AddXY(
|
||||
AX, AY: Double; AXLabel: String; AColor: TChartColor): Integer;
|
||||
begin
|
||||
Result := inherited AddXY(AY, AX, AXLabel, AColor);
|
||||
end;
|
||||
|
||||
{ TChartTeeChart }
|
||||
|
||||
function TChartTeeChart.GetAxisByAlign1(AIndex: TChartAxisAlignment): TChartAxis;
|
||||
|
Loading…
Reference in New Issue
Block a user