Skip to main content
100%

adding zoom button to the graph

✓ Published0🌍 Public
GGayan Priyadarshana
Last edited Aug 3, 2023
Created on Aug 3, 2023

This example shows a time-series line chart of average closing prices, filtered by product through a dropdown menu. The visualization uses React with D3 v5 scales (`scaleTime`, `scaleLinear`) and axis components, rendering an SVG path via `d3.line` with `curveNatural`. Data loads asynchronously from a CSV URL using `d3.csv`, with the y-axis domain recalculated from the filtered dataset. Hover tooltips are commented out, leaving only the dropdown-driven product selection as the interactive element.

AI-generated description

Working with time

MIT Licensed

Similar vizzes