Skip to main content
100%

D3-LineChart

✓ Published0🌍 Public
CChandana Srinivas
Last edited Feb 26, 2024
Created on Feb 25, 2024
Forked from HTML Starter

This example shows a line chart tracking the average population of the Iris-Setosa species from 2017 to 2023, with data points marked by circles that enlarge and display a red tooltip on mouseover. The visualization is built using D3 v7 within a React-compatible HTML page, rendering to an SVG canvas. It employs d3.line to construct the path, d3.scaleLinear for both axes, d3.axisBottom and d3.axisLeft for tick marks, and d3.csv to load external data from a GitHub gist. The chart uses a steelblue stroke and the d3.schemeBuPu color scheme for points and line.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes