固定TeeChart的座標,座標不跟隨Series變化而變化代碼:
//設置底座標
with myChart.BottomAxis do
begin
Automatic:=false;
Minimum:=0;
LabelStyle := talText;
end;
//設置左座標
with myChart.LeftAxis do
begin
Automatic:=false;
Minimum:=0;
Title.Angle:=270;
Title.Font:=Self.Font;
Title.Font.Charset:=ANSI_CHARSET;
Title.Font.Name:='@宋體';
Grid.Visible := False;
end;
//設置右座標
with myChart.RightAxis do
begin
Automatic:=false;
Title.Font:=Self.Font;
Title.Font.Charset:=ANSI_CHARSET;
Title.Font.Name:='@宋體';
Title.Caption:='累計百分比(%)';
Maximum:=100;
Minimum:=0;
end;