react-plotly.js icon indicating copy to clipboard operation
react-plotly.js copied to clipboard

example codepen not working using latest version

Open lidaof opened this issue 5 years ago • 5 comments

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!

lidaof avatar Apr 10 '19 20:04 lidaof

Hi @lidaof, where is this example from? It seems to be using our old API...

dmt0 avatar Apr 10 '19 21:04 dmt0

Hi @dmt0 , it's from the README.md I think:

there here link as below: image

lidaof avatar Apr 10 '19 21:04 lidaof

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);

dmt0 avatar Apr 10 '19 22:04 dmt0

Hi @dmt0 , yes, it's working. thank you!!

lidaof avatar Apr 11 '19 04:04 lidaof

This still needs to be fixed though

dmt0 avatar Apr 11 '19 15:04 dmt0