We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
When given data for treemap is somehow flawed, Plotly terminates with error. I think there needs to be some error handling.
In my case, plotting stops here with Cannot read property 'data' of undefined.
Cannot read property 'data' of undefined
plotly.js/src/traces/treemap/plot.js
Line 87 in 990a960
This is because calc has failed to build cd.hierarchy, but plotOne expects hierarchy to be there.
calc
cd.hierarchy
plotOne
hierarchy
Since treemap doesn't have axis, I don't know what a blank treemap plot would look like, but I suppose that's waht we need here.
The text was updated successfully, but these errors were encountered:
Could you please share a codepen?
Sorry, something went wrong.
https://codepen.io/deecay/pen/wvvexqo
Thanks for reporting @deecay !!
The equivalent sunburst trace behaves better: https://codepen.io/etpinard/pen/mddMOZo
... probably due to this block:
plotly.js/src/traces/sunburst/plot.js
Lines 99 to 101 in 6c3646a
that we could copy over to treemap/plot.js.
treemap/plot.js
archmoj
Successfully merging a pull request may close this issue.
Hi,
When given data for treemap is somehow flawed, Plotly terminates with error. I think there needs to be some error handling.
In my case, plotting stops here with
Cannot read property 'data' of undefined
.plotly.js/src/traces/treemap/plot.js
Line 87 in 990a960
This is because
calc
has failed to buildcd.hierarchy
, butplotOne
expectshierarchy
to be there.Since treemap doesn't have axis, I don't know what a blank treemap plot would look like, but I suppose that's waht we need here.
The text was updated successfully, but these errors were encountered: