Have you ever wondered how you create or use Plotly (plotly.js) on Datazar? No? Well here it is anyway.
Is your data being automatically updated via the Datazar REST API? The charts update themselves so you don’t have to worry about taking into account new data.
Plotly provides a CDN link so you can use their library without saving your own copy. That’s wonderful; let’s use that and copy it into the popup.
Copy and paste the JS code to the Datazar JS editor and you’re done.
Note this example actually generates the data on the fly but it’s the same principle as grabbing your data using the async Dataset function.
The CSS editor is just making sure the container page keeps the same color as the Plotly chart.
Using the Chart in a Paper
To use your newly minted chart on a Paper, Datazar’s new interactive research paper, create a Paper and use the option bar on the right to include it. The chart will be on the “Visualization” tab.
The cool thing about using the Plotly chart along with the interactive Paper is that it will keep its interactivity so you can zoom in and do all the fun things Plotly allows on their charts even AFTER you publish your Paper. This means your readers can play with your charts and get a better understanding; after all, that’s the whole point.
Checkout more features here: https://www.datazar.com/features