jbkunst / highcharter

R wrapper for highcharts
http://jkunst.com/highcharter/
Other
718 stars 147 forks source link

loading JSON from highcharter graph into highcharts web editor #770

Closed lm-ccc closed 3 months ago

lm-ccc commented 2 years ago

Hi there

thanks for the great package :) I'm a beginner so apologies if my question doesn't make sense!

I'm interested to know whether its possible to save the JSON for a highcharter chart (as in #269 ), and then load the chart into the highcharts editor, by clicking the button circled in the screenshot.

I gave this a go with the file saved from the example below, but it didn't seem to work when trying to upload it in the web editor:

library(highcharter)
library(jsonlite)
hc <- hchart(mtcars, "point", hcaes(x = mpg, y = cyl))
hc_json <- toJSON(hc$x$hc_opts, auto_unbox = TRUE, pretty = TRUE)
write(hc_json, "test.json")

My desired workflow is:

  1. generate charts in R with highcharter
  2. Import into highcharts editor, and save to cloud (i don't have a highcharts license yet.. so don't know what this step looks like)
  3. Potentially tweak the chart in the highcharts editor
  4. Embed in a wordpress website

I'm interested to know what this workflow looks like for others, and whether there is an established way to achieve this.

Thanks - and apologies again if this question isn't appropriate here Luke

image

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Feel free to reopen it if you find it necessary.