New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to export to image or pdf #89
Comments
Hey @zhiga90 you can't export is as an image or pdf. There is no function for that in chart.js As Chart.js using a canvas to draw the charts, you could use toDataURL() You can access the canvas in the chart component over |
@zhiga90 Where did you placed the button? In you Component, where you |
parent
children lineChart
|
You have access to import { Line, mixins } from 'vue-chartjs'
export default Line.extend({
mixins: [mixins.reactiveProp],
props: {
options: Object
},
mounted () {
console.log(this.$refs.canvas)
this.renderChart(this.chartData, this.options)
}
}) should work ;) |
Thanks for the tip. I used used toDataURL(). parent
children lineChart.js
|
google results just about jquery
The text was updated successfully, but these errors were encountered: