DisplayUnitCustom 属性

如果由 DisplayUnit 属性返回或设置的值为 xlCustom,则 DisplayUnitCustom 属性将返回或设置指定图表中数值轴上的显示单位。该值必须是从 0 到 10E307 之间的一个数。Double 类型,可读写。

说明

当绘制较大数值的图表时,使用单位标志可使坐标轴上的标志一目了然且数据也易于追踪。换句话说,如果以千作为数值轴的单位标志,就可以在轴上的刻度旁使用较小的数字。

示例

本示例将 myChart 中数值轴上的显示单位设置为 500。

With myChart.Axes(xlValue)

    .DisplayUnit = xlCustom

    .DisplayUnitCustom = 500

    .HasTitle = True

    .AxisTitle.Caption = "Rebate Amounts"

End With