Alternative Calendar View
This alternative calendar heatmap displays the daily percentage change in the Dow Jones Industrial Average (DJI) from Yahoo Finance, where each day is a colored cell. Unlike the original D3 calendar layout, it arranges multiple months per row to better suit data spanning a few years. The visualization uses D3 version 3 to render SVG rectangles, with tooltips for hover details. A quantized color scale applies an RdYlGn color scheme, and the layout includes month and year labels.
AI-generated descriptiond3.js Calendar View Heatmap
d3.js visualization of a calendar heatmap.
A new layout compared with the original d3.js calendar. The visualization in this repository is better suited for data that span over a couple years, as opposed to decades.
Features:
- tooltip hover
- month and year labels
Running the visualization
Simply cd into the directory and run a localhost from there.
I recommend using this command:
python -m SimpleHTTPServer
Credits
Mike Bostock for creating d3.js and the original calendar visualization. Cynthia Brewer for the color pattern. Yahoo! finance for historical data.
About
Kathy Zhou, software developer and d3 enthusiast :)
twitter: @kaffkaff
homepage: kathyzhou.com