Skip to content

[Bug] data[type=scattergl ] gives error if webGL is not supported #4765

Closed
@mafar

Description

@mafar

When browser does not have webGL enabled, type=scattergl gives error on console.
See error below
image

Steps To Reproduce:
I used firefox => about:config => webgl.disabled: true to disable webGL to reproduce this issue.
image

Expected Behaviour:
Instead of error , plotly should display following message just like type=scatter3d or type=isosurface

WebGL is not supported by your browser - visit https://get.webgl.org for more info

(disable webGL first) (Correct Behaviour scatter3d)
https://codepen.io/mafar/pen/ZEbQLZm?editors=1010

Incorrect Behaviour: scattergl
(disable webGL first)
https://codepen.io/mafar/pen/XWmXpoO?editors=1010

Comparison:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions