语法
表达式.DisplayUnitCustom
表达式 一个代表 Axis 对象的变量。
说明
在绘制大数值图表时,使用单位标志可使刻度线标志易于阅读。例如,如果将数值轴的单位设置为百、千或百万,则可以在坐标轴的刻度标志上使用较小的数字值。
示例
本示例将 Chart1 中数值轴上显示的单位设置为 500。
let axes = Charts.Item("Chart1").Axes(xlValue) axes.DisplayUnit = xlCustom axes.DisplayUnitCustom = 500 axes.HasTitle = true axes.AxisTitle.Caption = "Rebate Amounts"