Click or drag to resize

IChartDataTable ShowSeriesKeys Property

True if there is series keys in the data table.
Examples
The following code illustrates how to show series keys in the IChartDataTable object:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>workbook.LoadFromFile("Sample.xlsx");</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Create chart and set range</para><para>IChart chart = worksheet.Charts.Add();</para><para>chart.DataRange = worksheet.Range["A1:F2"];</para><para>//Set chart type</para><para>chart.ChartType = ExcelChartType.ColumnClustered;</para><para>//Enabling the data table</para><para>chart.HasDataTable = true;</para><para>//Get data table of the chart</para><para>IChartDataTable dataTable = chart.DataTable;</para><para>//Set true to show series keys in the data table</para><para>dataTable.ShowSeriesKeys = true;</para><para>//Save to file</para><para>workbook.SaveToFile("Chart.xlsx");</para>

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
bool ShowSeriesKeys { get; set; }

Property Value

Type: Boolean
See Also