We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Create dynamic charts from datasource

Recently i got a business requirement, to generate word document with chart. The existing input template contains text along with MailMerge fields and the process for document generation replaces MailMerge fields with resultant data. Please someone can share a sample for dynamic graph creation using datasource to create chart series.
I’m using 17.9 version of aspose.words and I’ve tried to create a chart using DocumentBuilder.insertChart(); How can i use this method with datasource?? and also how can i embed chart in my existing template?? Should i create a new merge field? or something else???



In your case, we suggest you please use LINQ Reporting engine to create charts dynamically. Please read the following articles. Hope this helps you.

Using Charts to Represent Sequential Data
Pie Chart Template