Category / Section
Can I include data table in the chart?
1 min read
Yes, data table can be included in the chart. This can be implemented by using the following code snippets.
C#
// Adding chart to the sheet. IChart chart = workbook.Charts.Add(); // Including data table. chart.HasDataTable = true;
VB
' Adding chart to the sheet. Dim chart As IChart = workbook.Charts.Add() ' Including data table. chart.HasDataTable = True
Here is the sample for your reference: