Activity 8 Q3
✓ Published0🌍 Public
A line chart displays the cost of sales from 2000 to 2013, sourced from a CSV file with `year` and `cost` columns. The visualization uses D3.v7 to render an SVG, mapping years to a band scale on the x-axis and costs to a linear scale on the y-axis. The chart applies a light green stroke, red axis labels, and custom font styling, with the `d3.line()` generator constructing the path and `d3.axisBottom`/`d3.axisLeft` adding ticks.
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