Skip to main content
100%

Price

✓ Published0🌍 Public
MMark Lam
Last edited May 4, 2022
Created on May 4, 2022
Forked from React D3 Starter

This visualization shows the historical percentage net change in price for a single item, plotted over time as a sparkline. The data is fetched from a JSON file hosted on GitHub and rendered as an SVG path using React and D3 v7. The code uses d3.scaleTime and d3.scaleLinear to map dates and percentage values to the chart’s 500-by-200 pixel layout, while d3.line generates the path geometry. The x-axis is time-scaled and the y-axis is linear, with the path styled as a transparent fill and black stroke.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes