TChartAxis.PositionPercent
 
 
 

All Units  All Classes  Properties, Methods and Events  

TChartAxis.PositionPercent
TChartAxis

property PositionPercent: Double;

Unit
TeEngine

Description
Default = 0

The PositionPercent property defines the position,
(as a percentage of Chart width or height or as pixels) (depending on whether it is applied to a Horizontal Axis or a Vertical Axis) of the Position of the Axis to which it is applied.
Left and Top
axis are at 0,0 positions.

Use with StartPosition and EndPosition properties to define the Axis position on a Chart.
You may use these properties with default and additional Axis, see the example below:

Example - Create a Custom Axis

//Creates a new Vertical Axis and defines a position for it.

procedure TForm1.BitBtn2Click(Sender: TObject);
Var MyAxis : TChartAxis ;
begin
MyAxis := TChartAxis.Create( Chart1 );
Series2.CustomVertAxis := MyAxis;

//You can modify any property of the new created axes, such as the axis color or axis title
With MyAxis do
begin
Axis.Color:=clGreen ;
Title.Caption := 'Extra axis' ;
Title.Font.Style:=[fsBold];
Title.Angle := 90;
PositionPercent := 20; //percentage of Chart rectangle

StartPosition:=50;
EndPosition:=100;
end;
end;



Send us Help Feedback. Copyright 1995-2013 © by Steema Software. All Rights Reserved.