Skip to content

Better error handling in treemap #4308

Closed
@deecay

Description

@deecay

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.

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 broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions