linechart
✓ Published1🌍 Public
A line chart shows the cost of sales from 2000 to 2013, with the year on the x-axis and cost on the y-axis. The data is loaded from a CSV file using `d3.csv` and rendered as an SVG path with a light green stroke. The chart uses `d3.scaleBand` for the categorical year axis and `d3.scaleLinear` for the continuous cost axis, with axes generated by `d3.axisBottom` and `d3.axisLeft`. Red axis labels and a centered title are added via SVG text elements.
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