[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataLabels.ShowValue

ShowValue Property

ShowValue

Gets or sets whether the data labels display the values of their associated chart points.

When this property is true, the data labels show the point values. When it is false, the values are hidden.

Declaration
bool ShowValue { get; set; }
Property ShowValue As Boolean
Examples
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"]);
IDataLabels dataLabels = chart.SeriesCollection[0].DataLabels;
dataLabels.ShowValue = true;
bool showValue = dataLabels.ShowValue;