Skip to main content
100%

Line Plot with menu

✓ Published3🌍 Public
Nnorangai
Last edited Nov 3, 2019
Created on Nov 3, 2019

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 description
MIT Licensed

Similar vizzes