Project Line Chart
✓ Published0🌍 Public
This line chart visualizes smartphone brand sales across eight quarters from Q2 2021 to Q1 2023, with each brand’s trajectory drawn as a distinct colored line. The example loads a CSV file via PapaParse, parses the data, and renders the chart using Chart.js on a Canvas element. Custom x-axis labels map quarter columns to readable date formats, and random colors are generated per brand to differentiate the datasets. The chart configures a responsive layout with a zero-based y-axis titled “Sales,” demonstrating data import from local files and integration of external libraries.
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