6 - Update and revert Graph data
✓ Published0🌍 Public
Aadry34160
Last edited Oct 30, 2016
Created on Oct 30, 2016
Two buttons, Update and Revert, toggle between two CSV datasets that share the same date range but have different closing values. A single line chart animates smoothly as the path and both axes transition to the new data, with the y-axis rescaling to accommodate the changed price range. The example uses d3.svg.line for the path, d3.svg.axis for the axes, and transition() with a 750-millisecond duration to animate the updates. It demonstrates how to reuse the same scales and axes across multiple data loads while preserving a consistent visual context.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed