固定TeeChart坐标,坐标不跟随Series变化的代码

固定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;

 

你可能感兴趣的:(代码,TeeChart)