{"version":"1.0","type":"rich","title":"5 - Update d3.js data with button press","description":"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.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-421ada4677f714c53c8ff42e948d5600?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}