[]
Gets or sets whether the data label displays the value of its associated chart point or trendline.
When this property is true, the data label shows the value. When it is
false, the value is hidden.
bool ShowValue { get; set; }
Property ShowValue As Boolean
worksheet.Range["A1:B4"].Value = new object[,] {
{"Month", "Sales"},
{"Jan", 12},
{"Feb", 18},
{"Mar", 15}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
IDataLabel dataLabel = chart.SeriesCollection[0].Points[0].DataLabel;
dataLabel.ShowValue = true;
bool showValue = dataLabel.ShowValue;