Activity8_Task3_linechart
✓ Published1🌍 Public
This line chart shows the cost of sales from 2000 to 2013, with each year mapped along a band scale and cost values along a linear scale. The SVG visualization draws a thick yellow polyline through the data points, which are loaded from a local CSV file. The chart uses d3.scaleBand and d3.scaleLinear for positioning, d3.axisBottom and d3.axisLeft for tick marks, and d3.line to generate the path. Axis labels are added as SVG text elements in blue.
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