score:0
Accepted answer
if you want to create a feature to allow a user to download the created charts into a image, you can use the 'todataurl()' function, and specify the canvas of each chart.
to download a canvas as a pdf you can use the jspdf library, using the above function to retrieve the canvas and then specifying the dimensions.
i may be wrong but i believe you need to create the charts and display on a web page before converting them to an image/pdf. hope this helps!
Source: stackoverflow.com
Related Query
- Export Canvas Charts to png and pdf
- How can I implement Polar area charts with Chart.js and Canvas
- How to export a chart in Excel and PDF format using Chart.js
- Export chart and table both to pdf
- reveal.js with plotly.js and chart.js export pdf
- Puppeteer and PDF generation with canvas
- Page with multiple chart.js charts to pdf
- ChartJS canvas not displaying rgba colors in IE, Safari and Firefox
- How to save Chart JS charts as image without black background using blobs and filesaver?
- How to add images as labels to Canvas Charts using chart.js
- zoom and pan on charts in angular
- Can Chart.js combines Line Chart and Bar Chart in one canvas
- Chart.js - Multiple Doughnut Charts on same Canvas
- Update charts in chartjs and angular
- unable to add background color to the canvas using jspdf and chartjs
- Take image of a chart.js from canvas and display it as an image
- How to create dynamic charts with Django and Chart.js?
- Creating dropdown options with Chart.js using select tag and multiple canvas
- How do I keep chart.js charts in one JS file, and not get errors when the ID from the JS file don't exist on one specific html page?
- How to achieve the best possible performance with mutable data and real-time charts in React?
- Export chart.js canvas to prawn-pdf in rails
- Export HTML content with Chart.jscanvases to PDF
- React chart : prevent chart's canvas scaling with height and width
- ChartJS 2.7.0 updating and exporting as png
- Laravel PDF generation with Graph and send it with Email
- How do I correctly include Moment.js and Chart.js with RequireJS when I want to create charts with time scales?
- Setting Common labels and background color common for all the charts in ChartJs
- Charts not showing in wicked pdf
- Create PDF with mpdf and chart.js
- canvas does not display proper width and height chart.js
More Query from same tag
- Canvas is not defined for simple chart
- Multiple Chart.js charts on a single page, from 1 function but different data
- My chart won`t live update - done in Chart.js and Java Script
- Chart.js find visible data points following zoom
- Chart.js : sparser clickable data points
- Chart.js in Angular Radar Chart
- Avoid the first GridLine to be dashed on Chart JS
- Chart.js not working after Django deployment on Heroku
- Line Chart is not setting backgroundColor when created dynamically Chart.js
- Query result into array in Laravel 6
- Type error when config ChartJs in Typescript
- Chart js. How to change font styles for "labels" array?
- Change position of Chart.js tick labels
- How to make labels on both side from horizontal bar chart js
- Display image on bar chart.js along with label (chartjs-plugin-datalabels)
- Chartjs small offset on top
- toDataURL() gives checkered background to downloaded chart
- Chart.js 2.0.0-beta2 disable points on line Charts
- Changing borderDash for specific gridLines in radar chart
- laravel chartjs dates skipped
- Convert/transpose one array into another in JavaScript?
- Multiple bubble chart datasets for chartjs
- What's an efficient process for passing PHP arrays to to populate multiple ChartJS graphs?
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- ng2-charts and annotation plugin: annotations not visible after data update
- Why is there an error in ChartJs.Blazor (change in ASPNETCORE_ENVIRONMENT)
- Detect if the click is in bar or outside of bar in ChartJS
- Setting min and max values chart.js
- Chart.js how to display % on tooltip
- Chart.js - How to create an auto-scaling line diagram for a big amount of data happenning over time