react-plotly.js
react-plotly.js copied to clipboard
example codepen not working using latest version
Hi developer,
in the codepen example https://codepen.io/rsreusser/pen/qPgwwJ?editors=1011 if I change version to 2.3.0, the chart is gone...is it easy to fix it? Thank you!
Hi @lidaof, where is this example from? It seems to be using our old API...
Hi @dmt0 , it's from the README.md I think:
there here link as below:
Thanks @lidaof, looks like something broke between 2.2.0 and 2.3.0. Will look into that.
The workaround for now is:
const Plot = createPlotlyComponent.default(Plotly);
Hi @dmt0 , yes, it's working. thank you!!
This still needs to be fixed though