Activity 8 Question 3
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed