Skip to content

applyHoverGlow

applyHoverGlow(ctx, color, intensity?): void

Defined in: core/draw.ts:111

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.

CanvasRenderingContext2D

string

number = 1

void