Viewing a saved revision (read-only)
8b37935d79e24e3097e6a0a886c12922
Assignment 7 Multi-Line Time Series Plot
This multi-line time series plot shows the average prices of four gourd varieties—bottle, bitter, smooth, and snake gourd—in Nepal over time, with each commodity distinguished by color. The visualization first filters the CSV data to these four categories, then groups the records by commodity using `d3.group`. It renders separate SVG paths via the `d3.line` generator, with a time-scaled x-axis and a linear y-axis for price in NPR. A color legend, created with the `d3-legend` library’s `legendColor` function, identifies each line, while axes are generated using `d3.axisBottom` and `d3.axisLeft`. The data comes from a remote CSV file, and the chart is drawn entirely with SVG.
AI-generated descriptionCS 360 Assignment 6 Scatter Plot With Color Scale Annie Huynh