Activity 8_Task 3
✓ Published0🌍 Public
This example visualizes the annual cost of sales from 2000 to 2013 using a line chart rendered as an SVG. The chart loads data from a CSV file and uses D3 v7’s `d3.scaleBand` for the year axis and `d3.scaleLinear` for the cost axis, with the line drawn via `d3.line`. It includes labeled axes and a red title. The code demonstrates importing D3 from UNPKG and local ES6 modules, with styling applied through embedded CSS.
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