chart-gpt icon indicating copy to clipboard operation
chart-gpt copied to clipboard

Export chart as code

Open FriendlyUser opened this issue 1 year ago • 3 comments

is there any way to have the chart exported as code I can import into another project?

Thinking of including them in my videos.

FriendlyUser avatar Apr 24 '23 16:04 FriendlyUser

Hi, I would like to work on this if possible. Couple of clarifications though:

  • When we say "Chart exported as code", do we mean just the string data that is passed as the recharts data, alongside the chart type?
  • Is this supposed to be exposed as an api, a button on the homepage (like the download button), or both?

PalAditya avatar Apr 27 '23 11:04 PalAditya

Hi, I would like to work on this if possible. Couple of clarifications though:

  • When we say "Chart exported as code", do we mean just the string data that is passed as the recharts data, alongside the chart type?
  • Is this supposed to be exposed as an api, a button on the homepage (like the download button), or both?

Got somewhat excited (This is a great tool!) and added #36 as a POC for this. Happy to carry on the discussion there, if applicable

PalAditya avatar Apr 27 '23 12:04 PalAditya

Perhaps related, I think being able to copy the svg code on button click (potentially separate from API) could be useful

merrillcook0 avatar Apr 28 '23 18:04 merrillcook0