Skip to main content
100%

Activity 8 Question 3

✓ Published0🌍 Public
MMichael Biancardi
Last edited Jul 17, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This example shows the cost of sales from 2000 to 2013 as a single line chart, with red axis labels for “Year” and “Cost” and a thick light-green stroke. It loads data from a CSV file and renders an SVG using D3 v7, applying `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis. The line is drawn with `d3.line`, while axes are generated via `d3.axisBottom` and `d3.axisLeft`.

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