# Heat Maps
Heat maps are used in 3D matrix visualization. It represents matrix data as color blocks in the table. The typical use of the heat maps is by using x and y-axis for two dimensions and color intensity for the third. The x and y-axis are often latency, offset, utilization, and the third is often time.
It reveals system behavior: finding distribution models, bottlenecks, outliers, hot spots, etc.
MH370 location probability heat map per DST Group analysis
- Heatmap is one of the fundamental data visualization forms for web analysis, click behavior analysis, etc.
- Heatmap is used in the performance analysis in the operating system or low-level software.
- Heatmap is often as one of the built-in chart types in the monitoring system, for example, Grafana Heatmap Panel.
# Grafana Heatmap Panel
The Heatmap panel allows you to view histograms over time.
brendangregg/HeatMap can convert the sample data collected by performance tracing tools like DTrace, ftrace, eBPG into a SVG file.
# Three-Dimensional Data
In the bar chart, you show a two-dimensional data in x-series and y-series. For example, below chart shows the frequency of letters in English words.
Heat maps can show three-dimensional data. You can think of the heat map as a series of bar charts compacting in one table over time.
# Color Intensity
The color intensity signifies the value of the data.
Some heat maps use the darkness of the color intensity. The lighter the color is, the smaller the value is. The darker the color is, the larger the value is.
Some heat maps use the warmness of the color intensity. The closer the color to blue, the smaller the value is. The closer the color to red, the larger the value is.
# Latency Heat Maps
Perf engineers collect the disk I/O latency every second. It's helpful for analyzing when rendering the latency data as heat maps.
However, sampling performance data on OS can be expensive! In term of the data collecting for the heat maps, it's always good to reduce time interval and choose proper bucket.
In general, the latency heat map has below three dimensions:
- x-axis: time.
- y-axis: disk I/O latency.
- color intensity: the frequency of disk I/O.
Heat Map is a powerful tool for visualizing three-dimensional data. When performing analysis on latency, offset, utilization over time, don't forget Heat Maps!