-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[charts] Export/Save as PNG / JPG / SVG / PDF #11746
Comments
Hi, thanks for your interest. Yes it's planned to be done as a pro feature. The feature is still not well defined do you have some particular needs in mind? |
Thanks for your response @alexfauquette . What I'm really looking for is to have an export option on somewhere around the chart and the exported file should have series of data that we're passing to chart in categorized manner. and the snap of the chart would be really great. |
With MUI X charts, users can see visual representations of data in various formats and diagrams. But let's say the user wants to use that graphic or diagram for an email attachment, in that case, there is no easier/built-in way to export that diagram as a PNG, or JPEG image so that the user can use that to their respective needs. So it will be good to have a feature where we can show a downloadable icon when user hover over the diagram so that they can download that diagram to their machine. |
Here is my solution https://gist.github.com/SunPj/14fe4f10db43be2d84751f5595d48246 Demo (download button is far on the right) https://f29qcl.csb.app/ |
thanks @SunPj for your effort. but I'm getting some error "Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules" - I'm opening in new window only |
@Ghouse1991 That's because of strict CORS rules of codesandbox, the demo is shown on one domain and the scripts are loaded from another domain. The best if you just clone and try it yourself. |
Sure. I'll give a try on that. Thanks |
Right now I'm not able to see any export/save option available currently in mui x charts (e.g., bar/pie charts) on right click/ any other way. Is that option already exists in latest version or any plan to introduce that in future
Expected behavior
Export/Save option to be available in x charts
Search keywords: export option mui x charts
User requests
Benchmarks
The text was updated successfully, but these errors were encountered: