[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataLabels.ShowSeriesName

ShowSeriesName Property

ShowSeriesName

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

This property determines whether the name of the associated series is shown for the data labels on the chart 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"]);
IDataLabels dataLabels = chart.SeriesCollection[0].DataLabels;
dataLabels.ShowSeriesName = true;
bool showSeriesName = dataLabels.ShowSeriesName;