Skip to main content
100%

Apple stock price display

✓ Published2🌍 Public
AAdvait Maduskar
Last edited Apr 24, 2022
Created on Apr 22, 2022
Forked from HTML Starter

A line chart displays Apple stock prices over time, using a red-to-green gradient to encode the value range from low to high. The chart includes axes for dates and price, plus an interactive tooltip that appears on mouseover, showing the precise price at the cursor position via a circle marker and text label. The visualization is built with D3 v4, using `d3.scaleTime`, `d3.scaleLinear`, `d3.line`, and `d3.bisector` for hover detection. Data comes from a CSV file loaded with `d3.csv`, and the SVG rendering includes a linear gradient defined with `linearGradient`.

AI-generated description
MIT Licensed

Similar vizzes