[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataLabel.ShowCategoryName

ShowCategoryName Property

ShowCategoryName

Gets or sets whether the category name is displayed in the data label.

If this property returns true, the data label shows the category name for the associated chart point. If it returns false, the category name is hidden.

Declaration
bool ShowCategoryName { get; set; }
Property ShowCategoryName As Boolean
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 10},
    {"Feb", 20}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns);
ISeries series = chart.SeriesCollection[0];
series.HasDataLabels = true;
IDataLabel dataLabel = series.Points[0].DataLabel;
bool showCategoryName = dataLabel.ShowCategoryName;