Articles in this section
Category / Section

Can I include data table in the chart?

1 min read

Yes, a data table can be included in the chart. This can be implemented by using the following code snippets.

C#

// Adding a chart to the sheet.
IChart chart = workbook.Charts.Add();
// Including the data table.
chart.HasDataTable = true;

 

VB

' Adding a chart to the sheet.
Dim chart As IChart = workbook.Charts.Add()
' Including the data table.
chart.HasDataTable = True

 

Here is the sample for your reference:

Chart_DataTable.zip

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied