BI/Analytics #29

Heat Map & Heatmap Style

Color-coded grid/matrix, data intensity visualization, geographical heat maps, correlation matrices, cell-based representation, gradient coloring

样式演示

infra.example.cn/heat — 服务器负载热力
🌫️ 负载热力
🔥 热力总览
🖥️ 机器明细
⚡ 弹性策略
📢 告警规则
📋 容量规划
S SRE · 老谢
CPU 负载热力图prod 集群 · 48 台 · 近 26 周
低 高
周一周二周三周四周五周六周日

🔥 连续 6 周,每周四 20:00 出现深红峰值 —— 建议为大促预热活动预扩容 12 台。

87%峰值 CPU(周四 20:00)
11 次本周高温告警
32%平均利用率
⋮ 8 台持续高温机器
高温机器 TOP 3
prod-web-07 94% prod-api-12 91% prod-db-03 89%

核心特性

浅色模式
✓ Full
深色模式
✓ Full (with adjustments)
性能
⚡ Excellent
可访问性
⚠ Colorblind considerations

配色方案

主色调

Gradient scale: Cool (blue #0080FF) to hot (red #FF0000), neutral middle (white/yellow)

辅助色

Support gradients: Light (cool blue) to dark (warm red), divergent for positive/negative data, monochromatic options

效果与动画

Color gradient transitions on data change, cell highlighting on hover, tooltip reveal on click, smooth color animation

适用场景

Geographical analysis, performance matrices, correlation analysis, user behavior heatmaps, temperature/intensity data

不适用场景

Linear data representation, categorical comparisons (use bar charts), small datasets

技术规格

时代/起源

2020s Modern

复杂度

Medium

框架兼容性

Recharts 9/10, Chart.js 9/10, D3.js 10/10

移动端友好

◐ Medium

转化导向

✗ Not applicable

AI 提示词

Design a heatmap visualization. Use: color gradient scale (cool to hot), cell-based grid, intensity legend, hover tooltips, geographic or matrix layout, divergent color scheme for +/- values, accessible color alternatives.

CSS 技术关键词

display: grid, background: linear-gradient for legend, cell hover states, tooltip positioning, color scale (blue→white→red), SVG for geographic, canvas for large datasets

实现检查清单

☐ Color scale clear
☐ Legend visible
☐ Tooltips informative
☐ Colorblind alternatives
☐ Zoom/pan for geo
☐ Performance for large data

设计系统变量

--heatmap-cool: #0080FF, --heatmap-neutral: #FFFFFF, --heatmap-hot: #FF0000, --cell-size: 24px, --legend-width: 200px, --tooltip-bg: rgba(0,0,0,0.9)