Line Plot with menu
✓ Published3🌍 Public
A line plot displays monthly price data for two columns, with a dropdown menu above the chart to switch which column is rendered on the y-axis. The menu, built via a custom `dropdownMenu` component, triggers the `scatterPlot` component on change, which uses `d3.scaleTime`, `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and `d3.line` with `curveBasis` to draw the smoothed path. Animated transitions of 1000 milliseconds update the line when a new column is selected, using SVG rendering.
AI-generated descriptionMIT Licensed