I have a few line charts that I made using ng2-charts in my program. I was able to tabulate the data onto a jsPdf document with the help of AutoTable
autoTable(doc, {
startY: 190,
theme: 'grid',
headStyles: {
fillColor: [32,42,68]
},
head: [//Arry],
body: //detArr,
// bodyStyles: {lineColor: [0, 0, 0]}
});
Is there a way that I can directly position the HTML DOM Canvas element of the chart into the pdf file so that I can prepare it for printing and presentation?
<canvas baseChart width="1000" height="250" [type]="'line'" [data]="chartData" [options]="lineChartOptions" [legend]="lineChartLegend"></canvas>