Open BENETNATH opened 2 years ago
The plotly configuration specifies what to plot and how it should be displayed, and there are a couple methods to generate it.
You can build the json by hand, which is more tedious, but I mention it as doing so offers more customization. The top level of the configuration JSON dictionary can have three keys: traces, layout and config. Traces specifies what to plot via a list of items. You can look at the plotly.js examples for some of the details on what is needed for the various chart types. Note that to connect with your data where the example might use x and y the extension will use xsrc and ysrc where you can specify the column from the datastore to plot,
The easier way, is to use the Open Graphical Editor button under the configuration text box. After constructing the desired plot click save and you should return to see the configuration populated with the setup you created.
Hope it helps
Thanks, sadly I can't build the graphical editor, so the button is not working
ok, I managed to have it working ! (needed to install node on the alpine docker and build it and find the good setup) Is there a way to keep the settings in the chart explorer once you define it ?
Hello, I've just installed ckan through docker I wanted to add a good way to visualize the dataset that I'm uploading. I installed the plugin, but I'm not able to build the editor inside the docker npm is installed npm build gives me an error :
plugin is correctly displayed but when I want to create a view, I've got an error "Plotly config: Invalid JSON string near line 1 column 1, Expecting value" I guess it's because my plotly configuration field is empty.
Any help ?