Skip to main content
100%

Fork of Fork of Real time chart 2

✓ Published0🌍 Public
PPiotr Paszek
Last edited May 12, 2021
Created on May 4, 2021

This real-time line chart displays 40 random data points generated by `d3.randomNormal`, continuously appending new values and shifting old ones out in a streaming animation. Built with D3 v5, it uses `d3.scaleLinear` for axes, `d3.line` with `curveBasis` for the smooth path, and `d3.axisBottom`/`d3.axisLeft` for tick marks. The SVG path updates every 50 milliseconds via a transition loop, while a clipped group ensures the line stays within the plotting area. The animation relies on `d3.active` to shift the path leftward with each tick. The chart renders entirely in SVG.

AI-generated description

Real time line chart

MIT Licensed

Similar vizzes