-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugsomething brokensomething broken
Description
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
| var isRoot = helpers.isHierarchyRoot(entry); |
This is because calc has failed to build cd.hierarchy, but plotOne expects hierarchy 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.
Metadata
Metadata
Assignees
Labels
bugsomething brokensomething broken