tchart 的使用(50分)

  • 主题发起人 主题发起人 wsd
  • 开始时间 开始时间
W

wsd

Unregistered / Unconfirmed
GUEST, unregistred user!
如何在程序中动态的改变tchart x,y轴的最小与最大值,以及如何动态的改变
坐标轴的单位。50分不知可以吗?
 
wsd:
I copy some document for you here, wish it can help you.

1-->Setting axis scales by code

You can change the Maximum and Minimum at runtime using this code:

With TChart1.Axis.Bottom
.Automatic = False
.Maximum = 36
.Minimum = 5
End With

You may set Axis scale Maximum and Minimum to automatic individually. eg:

With TChart1.Axis.Bottom
.AutomaticMaximum = True
.Maximum = 36
.Minimum = 5
End With

2->Increment

You may tailor the intervals for the Axis. Select the Desired Increment combobox from the Scales section of the Axis page and add the increment you require. You may change this by code at runtime:

With TChart1.Axis.Bottom
.Increment = 20
End With
 
接受答案了.
 
后退
顶部