Viewing a saved revision (read-only)
7157e80c4867430bbae7eb4feb2bb743
ice 7 Line Chart For covid
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 descriptionThe above line chart is created by using html,css,d3.js for the restaurant data.