void SetAxis(double XFrom=0,double XTo=10,double YFrom=0,double YTo=10);
//设置轴的范围
void SetAxis(double XFrom,double XTo,double YFrom,double YTo)
{
CChartStandardAxis* pBottomAxis =
CreateStandardAxis(BottomAxis);
pBottomAxis->SetMinMax(XFrom, XTo);
CChartStandardAxis* pLeftAxis =
CreateStandardAxis(LeftAxis);
pLeftAxis->SetMinMax(YFrom, YTo);
CChartStandardAxis* pTopAxis =
CreateStandardAxis(TopAxis);
pTopAxis->SetMinMax(XFrom, XTo);
CChartStandardAxis* pRightAxis =
CreateStandardAxis(RightAxis);
pRightAxis->SetMinMax(YFrom, YTo);
RefreshCtrl();
}
显示效果: