Skip to content
EliteChart

ValidationMode

Documentation


Documentation / @elitechart/core / ValidationMode

code
type ValidationMode = "strict" | "relaxed";

Defined in: data/validation.ts:28

Mode for validators. 'strict' throws on the first violation; 'relaxed' calls onWarn and continues so a feed with a single bad bar still renders.

Example

code
assertBars(bars, 'relaxed', (msg) => console.warn(msg));