Question] I Want to Insert Chart In to The Table

Dec 29, 2016 at 12:11 AM
Hi!
I'm using Docx useful.
i want to insert chart in the table cell,
chart insert is possible only DocX Class?

Example A. This is Possible

DocX document = DocX.Create(filename)
BarChart chart1 = new BarChart();
document.InsertChart(chart1)

Example B. This is Impossible... I would like to work as below.

DocX document = DocX.Create(filename)
BarChart chart1 = new BarChart();
Table table = document.AddTable(1, 1);
table.Rows[0].Cells[0].InsertChart(chart1)

Thank you for reading my question.
I'm Waiting For your answer :)