[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IDataTable.ShowLegendKey

ShowLegendKey Property

ShowLegendKey

Gets whether legend keys are shown in the chart data table.

This property indicates whether the chart data table displays a legend key for each series. The default value is true.

Declaration
bool ShowLegendKey { get; set; }
Property ShowLegendKey As Boolean
Examples
worksheet.Range["A1:C3"].Value = new object[,] {
    {"Month", "Sales", "Target"},
    {"Jan", 100, 90},
    {"Feb", 120, 110}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:C3"], RowCol.Columns, true, true);
chart.HasDataTable = true;
bool showLegendKey = chart.DataTable.ShowLegendKey;