Skip to content

Heat-map Error for Specific Data/Layout #6033

@cagantomer

Description

@cagantomer

I encounter an issue with heatmap visualization - with specific data / layout, the heat map is not drawn and the following error is raised:

plotly-latest.js:26976 Error: attribute width: Expected length, "NaN".
attrConstant @ plotly-latest.js:26976

Immediately followed by:

plotly-latest.js:26976 Error: attribute x: Expected length, "NaN".
attrConstant @ plotly-latest.js:26976

Here is a minimal codepen example that reproduces the error.

I am suspecting it has to do with interpreting the X values as numeric. If I change the first item from a number-like (i.e. "1310") to a string (i.e. "1310_") the heat map is rendered properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions