Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

adding zoom button to the graph

Public visualization

adding zoom button to the graph

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed