Skip to main content
100%

Area Chart Activity 8

✓ Published0🌍 Public
NNagateja99
Last edited Jul 13, 2023
Created on Jul 13, 2023
Forked from Hello VizHub

This example visualizes the cost of sales from 2000 to 2013 using an area chart with a smooth curve. Data is loaded from a CSV file and parsed to extract year and cost values. The visualization uses D3 v5 APIs including `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, `line`, and `area` to render the chart in SVG. The area under the line is filled with light green, while the line itself is black, with red tick labels and orange axis labels for emphasis.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes