Integrations overview
@ardinsys/financial-charts does not need framework-specific bindings – it only requires a real DOM element, a predictable container size, and lifecycle hooks for cleanup. The patterns below apply to any SPA/runtime that can give you an element reference.
Integration checklist
- Create the chart inside the framework's mount hook (
useEffect,onMounted,ngAfterViewInit). - Store the instance so you can call
draw,drawNextPoint, andupdateCoreOptionswhen props change. - Prefer a single sorted
dataarray. CalldrawNextPointfor the newest candle and fall back todrawwhen correcting existing data. - Dispose the chart during teardown (
useEffectcleanup,onBeforeUnmount,ngOnDestroy). - Keep the container height stable – the chart reacts to
ResizeObserverevents automatically. - Register controllers once at app startup to avoid duplicate registrations.
- Instantiate the chart on the client: the default formatter uses
navigatorand the chart depends on real DOM APIs (ResizeObserver,PointerEvent), so guard SSR setups withtypeof window !== "undefined".