你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Applies to: ✅Microsoft Fabric✅Azure Data Explorer✅Azure Monitor✅Microsoft Sentinel
在散点图视觉对象中,第一列是 x 轴,应该是数值列。 其他数值列是 y 轴。 散点图用于观察变量之间的关系。 The scatter chart visual can also be used in the context of Geospatial visualizations.
Note
This visualization can only be used in the context of the render operator.
Syntax
T|renderscatterchart [with(propertyName=propertyValue [, ...])]
Learn more about syntax conventions.
Parameters
| Name | 类型 | Required | Description |
|---|---|---|---|
| T | string |
✔️ | 输入表名称。 |
| propertyName, propertyValue | string |
键值属性对的逗号分隔列表。 See supported properties. |
Supported properties
所有属性都是可选的。
| PropertyName | PropertyValue |
|---|---|
accumulate |
是否将每个度量的值加到其所有前导度量中。 (true 或 false) |
kind |
可视化效果种类的进一步细化。 有关详细信息,请参阅 kind property。 |
legend |
是否显示图例(visible 或 hidden)。 |
series |
以逗号分隔的列列表,其中的每记录值组合定义了记录所属的系列。 |
ymin |
要在 Y 轴上显示的最小值。 |
ymax |
要在 Y 轴上显示的最大值。 |
title |
可视化效果的标题(string 类型)。 |
xaxis |
如何缩放 x 轴(linear 或 log)。 |
xcolumn |
结果中的哪一列用于 x 轴。 |
xtitle |
x 轴的标题(string 类型)。 |
yaxis |
如何缩放 y 轴(linear 或 log)。 |
ycolumns |
由逗号分隔的列列表,其中包含根据 x 列的值提供的值。 |
ytitle |
y 轴的标题(string 类型)。 |
| PropertyName | PropertyValue |
|---|---|
kind |
可视化效果种类的进一步细化。 有关详细信息,请参阅 kind property。 |
series |
以逗号分隔的列列表,其中的每记录值组合定义了记录所属的系列。 |
title |
可视化效果的标题(string 类型)。 |
kind 属性
可以通过提供 kind 属性来进一步详细阐述此可视化效果。
此属性支持的值为:
kind 值 |
Description |
|---|---|
map |
预期的柱形为 [经度,纬度] 或 GeoJSON 点。 系列列是可选的。 For more information, see Geospatial visualizations. |
Example
此查询提供了一个散点图,可帮助你分析状态总体与风暴事件造成的总财产损失之间的相关性。
The examples in this article use publicly available tables in the help cluster, such as the
StormEventstable in the Samples database.
The examples in this article use publicly available tables, such as the
Weathertable in the Weather analytics sample gallery. 可能需要修改示例查询中的表名称以匹配工作区中的表。
StormEvents
| summarize sum(DamageProperty)by State
| lookup PopulationData on State
| project-away State
| render scatterchart with (xtitle="State population", title="Property damage by state", legend=hidden)