语法
表达式.ShowLegendKey
表达式 一个代表 DataLabel 对象的变量。
示例
此示例设置 Chart1 中系列一的数据标签,以显示数值和图例标示。
let myDataLabel = Charts.Item("Chart1").SeriesCollection(1).DataLabels myDataLabel.ShowLegendKey = true myDataLabel.Type = xlShowValue