Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Shapes In action

Public visualization

D3 Shapes In action

0 stars1🌍 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()

Comments

Sign in to join the discussion.

MIT Licensed