I find react-chartkick (based on chartkick ) very useful and easy for integration.
I use also its download-charts feature.
The only problem is that I have to provide a way to download the chart as jpg image and it looks like there is no such an option (it always creates a png file). Am I missing anything? Any idea for solution?
Here is the issue I've opened on GitHub.
You can just specify the filename in the download
option.
{download: "chart.jpg"}
See this fiddle for usage.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.