← All templates

散点象限 <Scatter />

散点图加两条虚线分成四个象限,象限名逐个出现;少数点写名字,重点点用强调色。

Template and style descriptions are currently available in Chinese only.

See it in the demo deck →

Group
数据 · 两个指标的分布
Component
Scatter · #scatter

Good for

  • 6–60 个对象在两个指标上的位置
  • 想按“高/低 × 高/低”把它们分组

Avoid when

  • 点少于 6 个:用 Quadrant 摆卡片
  • 要看时间变化:用 LineChart

Content limits

1points 6–60 个,带名字的 ≤ 8 个,name ≤ 6 字
2xLabel / yLabel ≤ 14 字
3quadrants 4 个,每个 ≤ 8 字

Fields

FieldType
kicker · requiredstring标题上方的小节名,2–8 字
title · requiredstring | string[]页面标题;传数组可手动断行,每项一行
leadstring一到两句导语,≤ 60 字
sourcestring事实出处;页面上有任何数据或事实时必填
hintReactNode页眉中间的操作提示,可用 <kbd>
points · required{ name, x, y, label?, focus? }[]点
xLabel · requiredstring横轴名与单位
yLabel · requiredstring纵轴名与单位
split{ x, y }象限分界值
quadrants[左上, 右上, 左下, 右下]象限名
xDecimalsnumber横轴小数位
yDecimalsnumber纵轴小数位

Example

<Scatter kicker="追赶" title="…" points={[{ name: '中国', x: 0.7, y: 11.1, label: true }, …]} xLabel="2015 年占比(%)" yLabel="2025 年占比(%)" split={{ x: 1.1, y: 8.7 }} quadrants={['后来居上', '一直领先', '仍在起步', '被平均追上']} />