linechart
✓ Published0🌍 Public
This example shows the cost of sales from 2000 to 2013 as a single light-green line chart. It loads data from a CSV file using `d3.csv`, then renders axes with `d3.axisBottom` and `d3.axisLeft`. The line is drawn with `d3.line`, using a band scale for the year positions and a linear scale for the cost values. The SVG chart includes labeled axes and a title.
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