How to integrate charts with Datatables?

How to integrate charts with Datatables?

prpuprpu Posts: 2Questions: 1Answers: 0

We are using Data Tables for one of our projects. We have a requirement to generate charts based on the data in data tables. We are planning to integrate with Morris.js (http://morrisjs.github.io/morris.js/) or jqPlot (http://www.jqplot.com/) to generate charts.
Also, there is a requirement to print and export the report to PDF or Excel. We are using the print and export option provided in the Data Tables for this purpose. We would like to know whether there is any possibility to get the generated charts printed and exported to PDF or Excel along with the tabular report.
Appreciate your help on this matter.

Answers

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin

    There is no way to export them to the Excel file at this time, and for the PDf you would need to refer to the pdfmake documentation to see what the options for including images are. If the chart can be obtained as a base64 string then I don't see why you wouldn't be able to do that with the pdfmake API.

    Allan

  • prpuprpu Posts: 2Questions: 1Answers: 0

    Hi allan ,

    thank you very much for your quick response

This discussion has been closed.