是否可以使用 Kusto 查询语言创建直方图?

Noo*_*021 3 kql azure-data-explorer kusto-explorer

我正在检查 kusto 文档以检查是否可以创建直方图,但我似乎没有找到与直方图相关的任何内容。仅条形图和柱形图。

有没有办法在 KQL 中创建直方图或者这是不可能的?

Dav*_*itz 8

可以使用bin()来完成

// Generation of a data sample. Not part of the solution.
range i from 0 to 100 step 1 | project i, r = sqrt(-2*log(rand()))*sin(2*pi()*rand()) 
// Solution starts here.
| summarize count() by bin(r, 0.5)
| render columnchart 
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

小提琴