Skip to main content
100%

Gist bb8fddc4a5fc3cc60c99

✓ Published0🌍 Public
CCaged
Last edited May 8, 2014
Created on May 8, 2014

A line chart maps a small array of ten numbers to an SVG path, showing how the values fluctuate across a linear sequence. The visualization uses a red, unbroken polyline to emphasize the shape of the data, with the y-axis scaled from the data’s minimum to maximum and the x-axis evenly spaced by index. The code creates the chart using d3.scale.linear for both axes and d3.svg.line to generate the path, which is appended to an SVG container via d3.select and datum. The fixed width and height of 500 pixels define the plotting area, while the stroke and fill styles come from a CSS class.

AI-generated description

Similar vizzes