devextreme-reactive icon indicating copy to clipboard operation
devextreme-reactive copied to clipboard

React Chart: Allow export chart as png/jpg/svg

Open supermihi opened this issue 6 years ago • 5 comments

  • [x] I have searched this repository's issues and believe that this is not a duplicate.

I'm using ...

  • [ ] React Grid
  • [x] React Chart
  • [ ] React Scheduler

Current Behaviour

It is not possible to export (save) the current chart to a file (like it is in the non-native react wrappers).

Expected Behaviour

A plugin (or whatever) to add a "save" button, similar to the devextreme component.

supermihi avatar Feb 12 '19 16:02 supermihi

Hello.

Export is in our to-do list. Please refer to the roadmap.

DmitryBogomolov avatar Feb 13 '19 08:02 DmitryBogomolov

Very cool, thanks!

supermihi avatar Feb 13 '19 08:02 supermihi

Hello @supermihi We don't provide an export chart out of the box, but you can use external libraries such as jspdf and dom-to-image to export to image and pdf. Check it in the demo.

Krijovnick avatar May 22 '19 16:05 Krijovnick

Thank you for the hin't, I'll try that then. Does your post mean that out-of-the-box export has been removed from the roadmap? It was listed under version 19.1, which I think has already been released.

supermihi avatar Jun 09 '19 15:06 supermihi

Hello @supermihi

We will consider ways to implement the export of the chart in future releases. Currently, the implementation of this feature is not possible due to the complexity of the internal specifics.

Krijovnick avatar Jun 10 '19 10:06 Krijovnick