如何用语句设置Tchart的横纵坐标最大和最小值如何用语句设置Tchart的横纵坐标最大和最小值。?C/C++ codeCha
如何用语句设置Tchart的横纵坐标最大和最小值
如何用语句设置Tchart的横纵坐标最大和最小值。?
C/C++ codeChart1->MaxYValue=200;
好像不对啊。
[解决办法]//---------------------------------------
void __fastcall TForm3::FormCreate(TObject *Sender)
{
Chart1->BottomAxis->Automatic= false ;
Chart1->BottomAxis->AutomaticMaximum = false ;
Chart1->BottomAxis->AutomaticMinimum = false ;
Chart1->BottomAxis->Maximum =20000.00 ;
Chart1->BottomAxis->Increment = 2000.00 ;//刻度
Chart1->LeftAxis->Automatic = false ;
Chart1->LeftAxis->AutomaticMaximum = false ;
Chart1->LeftAxis->AutomaticMinimum = false ;
Chart1->LeftAxis->Maximum = 32767 ;
Chart1->LeftAxis->Minimum = -32768;
Chart1->LeftAxis->Increment = 6553 ;
Chart1->RightAxis->Automatic = false ;
Chart1->RightAxis->AutomaticMaximum = false ;
Chart1->RightAxis->AutomaticMinimum = false ;
Chart1->RightAxis->Maximum = 32767 ;
Chart1->RightAxis->Minimum = -32768;
Chart1->RightAxis->Increment = 6553 ;
}
//---------------------------------------
可以参考下