Skip to content

Class: WebGLUnavailableError ​

Thrown by createChart (and the rejection of newPlot / react / toImage) when no WebGL2 context can be created: the browser lacks WebGL2, it is disabled, or the GPU is blocklisted. cause holds the renderer's own error.

Extends ​

Constructors ​

Constructor ​

ts
new WebGLUnavailableError(cause): WebGLUnavailableError;

Parameters ​

ParameterType
causeunknown

Returns ​

WebGLUnavailableError

Overrides ​

HolochartError.constructor

Properties ​

PropertyTypeInherited from
cause?unknownHolochartError.cause
messagestringHolochartError.message
namestringHolochartError.name
stack?stringHolochartError.stack

Released under the MIT License.