ShowLegendKey 属性

       

如果数据标签图例标示可见,则该值为 TrueBoolean 类型,可读写。

示例

本示例设置 Chart1 中系列一的数据标签,以显示数值和图例标示。

With Charts("Chart1").SeriesCollection(1).DataLabels
    .ShowLegendKey = True
    .Type = xlShowValue
End With