highcharts / highcharts-editor

https://www.highcharts.com/products/highcharts-editor
Other
250 stars 96 forks source link

Import chart json in highchart editor to load the same chart options for Modal Editor #151

Closed a3aakash closed 6 years ago

a3aakash commented 6 years ago

Hi All,

Please help me out for importing my json data in the highchart modal editor to show the same chart options which was selected for making the chart. Problem I am unable to hold the highchart options in the editor.

Please solve this out as it is urgent to me.

cvasseng commented 6 years ago

Hi,

in the latest release, which just went live, you can do:

modalEditor.editor.chart.options.setAll(<configuration>) to load basic JSON configurations. This will overwrite existing chart options with the one you supply.

It's recommended that you use the project format if you plan on continuing editing the chart though, which can be saved/loaded either by using the Save/Open icons in the toolbar, or by calling: editor.chart.toProject() and editor.chart.loadProject(<project data>).

a3aakash commented 6 years ago

Thank you @cvasseng. I will download the latest release and do the same thing. Please update your documentation file as well so that in future if there will be anything I want to check I will refer that.