Viz - Line - Redraw
✓ Published0🌍 Public
NNPashaP
Last edited Jan 14, 2018
Created on Jan 14, 2018
This example demonstrates a dynamic line chart where data points are randomly regenerated every two seconds, causing the line to redraw with a new path. The visualization uses the viz.js library’s `viz.line()` API, with data bound to an SVG `<g>` element via D3 v4’s `selection.call()`. Each update resets the `valueScale` to recompute the y-axis domain, while the line’s stroke is styled as a steel-blue path. The animation is driven by `setInterval()`, which maps the original keys to new random values, showcasing live re-rendering of an SVG line in response to changing data.
AI-generated descriptiongpl-3.0 Licensed