Skip to main content
100%

Fork of Fork of Area Chart Activity 8

✓ Published0🌍 Public
Rrushithareddyy
Last edited Jul 14, 2023
Created on Jul 14, 2023

This D3.js area chart visualizes the cost of sales from 2000 to 2013, with the x-axis representing the year and the y-axis representing the cost value. The chart combines a black smoothed line and a light green filled area beneath it, using the `areaGenerator` and `lineGenerator` with `curveBasis` to create curved paths. Data is loaded from a CSV file via `d3.csv`, parsed with `new Date()` for the year, and rendered as SVG. The visualization uses `scaleLinear` and `scaleTime` for axes, with `axisBottom` and `axisLeft` for tick marks, and includes custom styling from an external stylesheet.

AI-generated description

example of Area chart

MIT Licensed

Similar vizzes