Skip to main content
100%

ICE 7 Line Chart

✓ Published0🌍 Public
Nnagasai-gummadi
Last edited Mar 11, 2023
Created on Mar 11, 2023

This chart visualizes Amazon’s annual net income in millions from 1994 to 2021, using a single red line to emphasize growth over time. Rendering to an SVG, it computes a time-scaled x-axis and linear y-axis using `d3.scaleTime` and `d3.scaleLinear`, with gridlines and labeled axes generated via `d3.axisBottom` and `d3.axisLeft`. The line path is drawn with `d3.line`, fed by CSV data parsed with `d3.csv`; dates are formatted using `d3.timeParse` and numeric values are coerced to numbers. The chart’s styling is applied through an external CSS file, while D3 v5 is loaded from a CDN.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes