Articles in this section
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:

Chart_DataTable.zip

 

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