TAChart: Add TeeChart-compatible THorizBarSeries class

git-svn-id: trunk@36922 -
This commit is contained in:
ask 2012-04-20 07:01:32 +00:00
parent 7972cf7f51
commit c2a1945430

View File

@ -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;