Skip to content

Error rendering plot with phantomjs #1053

@JordanBallew

Description

@JordanBallew

When I try to render a heatmap with phantomjs I get the following error:

TypeError: undefined is not a constructor (evaluating 'ArrayBuffer.isView(t)')

  https://cdn.plot.ly/plotly-latest.min.js:48 in exports
  https://cdn.plot.ly/plotly-latest.min.js:48 in i
  https://cdn.plot.ly/plotly-latest.min.js:48
  https://cdn.plot.ly/plotly-latest.min.js:48 in coerceFunction
  https://cdn.plot.ly/plotly-latest.min.js:48 in coerce
  https://cdn.plot.ly/plotly-latest.min.js:59 in u
  https://cdn.plot.ly/plotly-latest.min.js:44 in exports
  https://cdn.plot.ly/plotly-latest.min.js:59 in exports
  https://cdn.plot.ly/plotly-latest.min.js:56 in supplyTraceDefaults
  https://cdn.plot.ly/plotly-latest.min.js:56 in supplyDataDefaults
  https://cdn.plot.ly/plotly-latest.min.js:56 in supplyDefaults
  https://cdn.plot.ly/plotly-latest.min.js:50 in plot
  https://cdn.plot.ly/plotly-latest.min.js:50 in newPlot

This behavior seems to have started in 1.17.0. It works fine in 1.16.3. I am using phantomjs 2.1.1. I have attached an example that can be run by the following command:

./phantomjs.exe test.js

The example assumes everything is in the current directory. It is rendering the Annotated Heatmap example from the plotly docs.

phantomjs-test.zip

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