Skip to content

applyHoverGlow

applyHoverGlow(ctx, color, intensity?): void

Defined in: core/draw.ts:74

Apply the canvas-level “hover glow” used by every interactive chart in the library. Call once before the fill/stroke; pair with clearHoverGlow (or set shadowBlur = 0) afterwards so the shadow doesn’t bleed into the next draw.

intensity controls both the shadow alpha (0.3 × intensity) and blur radius (12 × intensity); 1 is the default everywhere in the library.

Parameters

ctx

CanvasRenderingContext2D

color

string

intensity?

number = 1

Returns

void