Stocks transition
This visualization compares monthly stock price data for several companies across multiple years. It initially renders as a stacked bar chart where each bar represents a company and is subdivided by year, using D3 v4’s stack layout and ordinal color scale. Clicking anywhere on the page triggers a smooth transition: the grouped bars slide into separate columns and reshape into individual bars showing each company’s average yearly price, animated over 800 milliseconds. The SVG-based transition highlights how the data can be viewed either as cumulative contributions or as independent annual values.
AI-generated descriptionBuilt with blockbuilder.org
forked from <a href='http://bl.ocks.org/adurivault/'>adurivault</a>'s block: <a href='http://bl.ocks.org/adurivault/31255e709ce34a5703faac354734864a'>Stocks transition_1</a>