散点图卡
相关视图 - 每条记录一个点,由两个度量放置,当数据携带一个时,大小增加三分之一。点按系列分组,因此每个组都保持自己的颜色;将标题悬停在该记录上会将标题交换为该记录并使其他系列变暗,并且轴标题位于图下方。
Revenue per account
742
+6.8%收入会议
Starter · 平均
270Growth · 平均
783Scale · 平均
1,388使用共享 UI 包或自定义导入别名? 配置您的安装路径 在运行 CLI 之前。复制粘贴示例使用默认导入。
无气泡
当任何点带有一个时,气泡会自动打开 z;通过 bubble={false} 当第三个度量不值得编码时,对于偶数点。
数据
series 是 { label, points, color? }[] 每个点都是 { x, y, z?, label? }。重点是 label 是标题在悬停时显示的内容;得出平均值、图例和图块。当您通过时,经期药会出现在下拉列表中 ranges.
// Points are grouped into series - each gets a colour, a legend row and a tile.// Any point carrying `z` turns the card into a bubble chart.<ScatterChartCard title="Revenue per account" series={[ { label: "Starter", points: [ { x: 12, y: 180, z: 40, label: "Acme" }, { x: 18, y: 240, z: 60, label: "Bolt" }, ], }, { label: "Growth", points: growthPoints, color: "var(--color-chart-6)" }, ]} axisLabels={["Sessions", "Revenue"]} // captions under the plot format={(n) => `$${n.toLocaleString()}`} // y measure formatX={(n) => `${n}k`} // x measure bubble={false} // force plain dots even when the data carries z tiles // average y per series below the chart/>