Skip to content

charton API


charton API / @chart-on/core / index / sharedContext

Function: sharedContext() ​

sharedContext(): ChartPlugin

Defined in: packages/core/src/builtins.ts:131

Plugin that lets charts created with gl: 'shared' draw through one WebGL context for the whole page. Pass it in the chart's creation plugins: the context is chosen then. Without it, gl: 'shared' charts get their own.

Returns ​

ChartPlugin