plotly / react-pivottable

React-based drag'n'drop pivot table with Plotly.js charts
https://react-pivottable.js.org/
MIT License
1k stars 259 forks source link

Error for empty pie charts #66

Open pcanas opened 5 years ago

pcanas commented 5 years ago

When you deselect all the values for a Pie Chart, there are two errors logged in console:

plotly.js:20656 Error: <path> attribute d: Expected number, "MNaN,NaNaNaN,NaN …"
plotly.js:20656 Error: <text> attribute transform: Expected number, "translate(NaN,NaN)translat…"

Any help will be highly appreciated.

nicolaskruchten commented 5 years ago

Is this preventing operation or is it just a console warning?

pcanas commented 5 years ago

It is just a console warning, but I think it is not nice to have it. Thank you.