如果數(shù)據(jù)點(diǎn)具有數(shù)據(jù)標(biāo)簽,則該值為 True。Boolean 類型,可讀寫。
本示例打開第三個(gè)數(shù)據(jù)系列的第七個(gè)數(shù)據(jù)點(diǎn)的數(shù)據(jù)標(biāo)簽,并將該數(shù)據(jù)標(biāo)簽的顏色設(shè)置為藍(lán)色。
With myChart.SeriesCollection(3).Points(7)
.HasDataLabel = True
.ApplyDataLabels Type:=xlValue
.DataLabel.Font.ColorIndex = 5