[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IPoint.HasDataLabel

HasDataLabel Property

HasDataLabel

Gets or sets whether the point has a data label.

This property indicates whether a data label is displayed for the individual point in the chart series.

Declaration
bool HasDataLabel { get; set; }
Property HasDataLabel As Boolean
Examples
worksheet.Range["A1:B4"].Value = new object[,] {{"Category", "Value"}, {"A", 10}, {"B", 20}, {"C", 30}};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
IPoint point = chart.SeriesCollection[0].Points[1];
point.HasDataLabel = true;
bool hasDataLabel = point.HasDataLabel;