A chart should absorb live ticks without remounting — repainting the canvas at 60fps in React, Vue or Svelte. There are two ways to feed it; pick one on the left to see its walkthrough.
Two ways to push live ticks in — pick one to walk through it:
- Declarative — keep the series in state and hand it to the
dataprop; the wrapper diffs it and appends, updates, or rolls the window for you. - Imperative — call
appendData/updateData/keepLaston the chart instance directly.
Default to declarative; reach for imperative when ticks outrun your render loop or the data lives outside the component tree.