{"version":"1.0","type":"rich","title":"Line Plot with menu","description":"This interactive line plot shows how commodity prices change over time, with a dropdown menu letting users switch between different price columns from the dataset. The visualization uses D3 v5 with a modular component approach, where a reusable `dropdownMenu` function handles the selection interface and a `scatterPlot` component manages the SVG rendering. The code applies `d3.scaleTime` for the x-axis, `d3.scaleLinear` for the y-axis, and a `d3.line` generator with `curveBasis` to create smooth paths. Transitions animate the line update when the user selects a new column, while axis ticks include gridlines for readability.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/e7ca7df035b345dcb88de620c89e8c1a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}