Heatmap
✓ Published0🌍 Public
RRobinL
Last edited Jun 24, 2016
Created on Jun 24, 2016
This example demonstrates interactive data updates in a heatmap visualization. Clicking the red "button rect1" replaces the initial 100-cell color grid with 110 randomly generated values, animating new rectangles as they expand and recolor through `transition().duration(300)` with staggered delays. Clicking "button rect2" instead appends blue circles of varying radii based on the data values [100, 300, 400, 500]. The code uses D3.js selection, `d3.scale.linear` for color mapping from red to green, and underscore.js’s `_.map` for data transformation, with all rendering output as SVG.
AI-generated description