score:3
Accepted answer
you can see in the mpdf docs: https://mpdf.github.io/html-support/html-tags.html
that canvas
and script
tags are not supported. in the case of charts, most use canvas, you can see that chartsjs also uses canvas to render its charts. https://www.chartjs.org/docs/latest/general/responsive.html
most pdf generator does not support rich html and charts.
i suggest you use phantomjs
for generating pdf.
http://jonnnnyw.github.io/php-phantomjs/
for pdf: http://jonnnnyw.github.io/php-phantomjs/4.0/3-usage/#output-to-pdf
Source: stackoverflow.com
Related Query
- Chartjs does not show on pdf in yii2 despite showing in html view
- chartjs plugin datalabels does not show value on charts
- Chartjs does not show annotations when x axis is of type time
- ChartJS : It's not showing in html on Django
- Floating clone does not show in chrome if dragged element contains a chartjs component
- Angular ChartJs does not show Data for multiple Charts
- ChartJs title not showing
- show label in tooltip but not in x axis for chartjs line chart
- chartjs + Angular6 is not showing charts or any error
- Html chart does not fit a small Android WebView
- chartjs height does not follow parent container
- Chart looks only grey, does not show the color - Chartjs,discordjs
- ChartJS bar not showing up for simple data points
- Chartjs Graph is not showing in colorbox
- Chartjs bar dataset label not showing
- ChartJS / MomentJS - Unable to remove deprecation warning. Graph not showing in firefox/opera
- How to add ChartJS code in Html2Pdf to view image
- Chart.js not showing in my view
- showing tooltips all the time in chartjs 2.4 not working
- Chartjs bar-chart does not render when values are equal
- Bar Chart of ChartJS does not Render
- Charts not showing in wicked pdf
- Chartjs show labels but not ticks
- Chartjs not working with d3 from csv source
- Chartjs and ChartDataLabels does not work in mdb5 pro version 2
- Chartjs not showing all data points
- HTML 5 chartjs not working as static file
- Showing 'undefined%' in the graph if data does not exist
- ChartJS does not display when using local Chart.js file
- Adding object data to data structure of chart.js chart does not show any data
More Query from same tag
- Storybook: Changing the value of the control doesnot rerender the Chart.js canvas
- How to set the serifs on the X and Y axes?
- Chart.js render two charts on one page.
- How can I cause a legend to appear to the right of the pie (Chart.JS)?
- Click event using Chart.js with AngularJS
- vertical grid line not taking full hight of the canvas in chart js 3.3.2
- Chart.js Using A JavaScript Object
- chart.js Line chart doesn't display line past a certain point in the chart
- Chart.js horizontal line chart or modified horizontal bar chart
- Line chart is not being displayed in Chart.js
- line graph spot in the top middle of the bar graph
- Chart.js How to align two X-axis in bar chart?
- Doughnut chart, in some cases if quantity is 1, its showing without back ground color, but color shows correctly while hovering
- chartjs Asp.net MVC Remote Data
- ChartJS - Donut charts with multiple rings
- Using Chart.js with angular and systemjs: "Chart is not defined"
- Chart.js Types of property 'type' are incompatible. Type 'string' is not assignable to type '"line" | "bar" | "scatter"
- Use transparent stroke color with chartjs pie chart
- Showing only entire units on ChartJS
- CharJS 2.5.0 - How to remove space between bars
- Pass objects from javascript to Chart.JS through EJS
- Chartjs initial animation want to change from left to right (default it is bottom to top)
- Visual Studio 2013 IIS web site - problems with JS files
- Chart.js v2 - combined stacked bar chart and 2 unstacked lines
- How to change the z order of a chartjs polar chart
- Emberjs binding properties within Ember object
- Chartjs Overlap click function doesnt work
- how to plot multiple time series in chartjs where each time series has different times
- How to detect when Tooltip closes in chart.js?
- updating a chart in chart.JS using a dropdown button