How to create a plotly line chart?

Hi! I’ve noticed that Wix has the @nteract/plotly package and I would like to make a line chart on my website with it. But I have no idea how.

I’ve seen this example https://www.wix .com/corvid/example/chart.js-custom-element but I find the plotly chart much better.

I’ve tried some things, but as soon as I add import plot from “@nteract/plotly” ; to my Wix code the editor becomes extremely slow, and previewing the website yields this error: We couldn’t bundle your scripts quickly enough.

The data that I want to use on the chart comes from my API. Here is an example: http://api.cbledger .com/v1/timeseries/centralbanks-series?series=m2&centralbanks=unitedstates
(I didn’t finish the documentation yet, otherwise, I would share it with you)

Thank you.

Wix is unable to support external libraries. You will need to check with plotly regarding your problems.