Skip to main content

Share Heatmap Defaults

@ aquarius-wing1012026.8.6share-heatmap-defaults

Helps choose between a treemap and a fixed-grid heatmap when a request says “heatmap” but really talks about share, distribution, or dominance.

FeaturedAI Engineering

Basic info

Name
Share Heatmap Defaults
Description
当用户要求为某领域/数据集做"热力图",且描述里出现"占比""分布""份额""谁大谁小""谁占多少"等语义词时触发, 用来判断该用 Treemap(面积编码)还是传统色块网格热力图,避免把"热力图"想当然地直译成颜色深浅的均匀网格。 也覆盖"数据有多个统计口径(累计/24h/周/月/年等)时该怎么设计切换控件"这个连带判断。 Also trigger for casual phrasing: "画个占比热力图", "各板块/各渠道/各业务线占比可视化", "谁占大头一眼看出来". Do NOT trigger when: 描述里没有占比/份额语义,格子大小本身没有业务含义(比如日历热力图配色、相关系数矩阵、 按天/按小时排列的固定网格);用户在纯图表类型初选之间做决定(柱状图 vs 折线图等);用户要的是具体的 Treemap 算法实现、CSS 布局写法或验证脚本怎么写——这些交给模型临场处理,不在本 skill 判断范围内。

Share Heatmap Defaults

Choose the right default before building a “heatmap” whose real question may be share, area, or distribution.

When to use it

Revenue share chart

When I ask for a heatmap and the wording includes share, distribution, portion, “who is bigger,” or “who takes the largest part,” I want the model to decide whether block area should carry the meaning.

Calendar heatmap

When the grid position is fixed, such as days, hours, matrix cells, or GitHub-style contribution boxes, I want the model to keep the cells the same size and use color only for intensity.

Metric switching

When the same dataset has several time windows or statistical views, such as total, 24 hours, week, month, or year, I want the model to design a clear switch instead of mixing unrelated encodings.

Not for

This is not for choosing among unrelated chart families like bar charts versus line charts, and not for implementing a treemap layout algorithm or CSS details.

What it produces

The key decision is made before implementation: treemap or fixed-grid heatmap.

  • Encoding choice: decide whether area represents share or whether every cell stays the same size.
  • Treemap default: use proportional area when the business question is “who owns how much of the whole.”
  • Grid default: keep fixed cells when the cell position itself is the structure, such as days or matrix rows and columns.
  • Metric switch: when several time windows exist, switch both area and color together for the selected metric.
  • Self-check: ask whether area alone shows who has the larger share; if not, revisit the encoding.
  • Never does: write the treemap algorithm, CSS layout, data fetching, color palette, or validation script for you.

Prerequisites & boundaries

Input needed

A chart request that includes the word heatmap or a similar visualization request, plus enough wording to tell whether share, portion, or distribution is the core question.

Neighboring work

  • Choosing between bar, pie, line, and other unrelated chart types stays with ordinary chart-design judgment.
  • Implementing treemap layout, coordinates, CSS, or tests stays with the coding model at the moment of implementation.
  • Picking colors and scales is separate from the area-versus-color encoding decision.

Out of scope

  • Heatmaps with no share or portion meaning.
  • Calendar heatmaps, correlation matrices, and fixed row-column grids where size has no business meaning.
  • Requests where the word “distribution” means density over a dimension rather than parts of a whole.

Subtle boundary

If the wording is ambiguous, ask one clarifying question: is the chart about each item’s share of the whole, or each item’s own activity or strength?

Let's Build Together

Follow us and join the community for updates

WeChat community

Scan to join WeChat group

WeChat QR Code