linechart
✓ Published1🌍 Public
A line chart displays the cost of sales from 2000 to 2013, with each year plotted along the x-axis and cost values along the y-axis. The SVG visualization uses d3.scaleBand and d3.scaleLinear for positioning, while d3.line and d3.axisBottom and d3.axisLeft construct the path and axes. Data is loaded from a CSV file via d3.csv. The chart features a lightgreen stroke, red axis labels, and a styled 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