Skip to main content
100%

5 - Update d3.js data with button press

✓ Published0🌍 Public
Aadry34160
Last edited Oct 30, 2016
Created on Oct 30, 2016

A line chart displays stock closing prices over time, with an area fill beneath the line. A button press triggers an update that swaps the plotted dataset from one CSV file to another, re-scaling the x and y axes accordingly. The visualization uses d3.svg.line and d3.svg.axis, with transitions on the line and axis elements via .transition().duration(750). The data comes from two local CSV files, parsed with d3.time.format, and the chart is rendered in SVG.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes