Skip to main content
100%

D3 Shapes In action

✓ Published1🌍 Public
SSubhendu Karmakar
Last edited Dec 28, 2023
Created on Dec 28, 2023

This example demonstrates how to generate a line chart from random data points using D3's line generator. The code creates 200 points with x-coordinates increasing by 3 and y-coordinates randomly assigned between 0 and 100, then passes this array to `d3.line()` to produce a smooth path. The resulting SVG path element is styled with a gray stroke and no fill, and the file uses D3 version 7.8.5 with SVG rendering, as specified in the HTML and package configuration.

AI-generated description

D3 Scales - scaleTime()

MIT Licensed

Similar vizzes