Viz - Line - valueScale
✓ Published0🌍 Public
NNPashaP
Last edited Jan 14, 2018
Created on Jan 14, 2018
A simple line chart maps four data points from an array of key-value pairs, with a logarithmic scale controlling the vertical axis. The line is drawn as an SVG path using the `viz.line()` API from the Viz.js library, while `d3.scaleLog()` maps values between 2 and 1000 to pixel coordinates. The example demonstrates how to combine Viz’s line generator with D3 v4 scales, rendering the result inside an SVG `<g>` element with a steelblue stroke.
AI-generated descriptiongpl-3.0 Licensed