Activity8_Task3
✓ Published2🌍 Public
This example visualizes the cost of sales from 2000 to 2013 using a line chart rendered as an SVG. It loads data from a local CSV file and maps years to a band scale along the x-axis and costs to a linear scale on the y-axis. The chart uses D3 v7 APIs, including `d3.csv`, `d3.scaleBand`, `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and `d3.line`, to draw a thick light-green line with red axis labels and styled text.
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