Closed
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
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.