linechart
✓ Published0🌍 Public
A line chart visualizes the cost of sales from 2000 to 2013, with years on the x-axis and cost on the y-axis. The chart is rendered as SVG, using D3 v7's `scaleBand`, `scaleLinear`, `line` (via `d3.line()`), and axis functions (`axisBottom`, `axisLeft`) to draw the path and axes. Data is loaded from a CSV file using `d3.csv`. The chart includes red axis labels and a red 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