ice 7 Line Chart For covid
✓ Published0🌍 Public
This line chart shows the average prices of four gourd varieties—bottle gourd, bitter gourd, smooth gourd, and snake gourd—over time in Nepal, with each commodity represented by a distinct colored line. The visualization uses a time-series layout with a date-based x-axis and a price axis in NPR, rendered as an SVG via D3 v6. The code loads JSON data, filters it to include only the four gourd types, and groups it by commodity using `d3.group`. It employs `d3.scaleTime`, `d3.scaleLinear`, and `d3.scaleOrdinal` with the `schemeTableau10` color scheme, while the `d3.legendColor` API generates a vertical legend.
AI-generated descriptionMIT Licensed