[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataLabel.ShowSeriesName

ShowSeriesName Property

ShowSeriesName

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

Use this property to determine whether the data label shows the name of the associated series.

Declaration
bool ShowSeriesName { get; set; }
Property ShowSeriesName 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"]);
IDataLabel dataLabel = chart.SeriesCollection[0].Points[0].DataLabel;
dataLabel.ShowSeriesName = true;
bool showSeriesName = dataLabel.ShowSeriesName;