Kusto图例排序

huangapple go评论49阅读模式
英文:

Kusto legend sorting

问题

我有一个通过Azure工作区创建的饼图可视化。我遇到的问题是图例本身的排序。在下面的图片中,我希望图例本身按照OSVersion的值排序,而不是按照计数排序。

英文:

I have a piechart visualization that I'm creating through Azure workspaces. What I'm struggling with is the sorting of the legend itself. In the picture below, I'd like the legend itself to be sorted by the OSVersion value and not the count.

Kusto图例排序

答案1

得分: 0

根据文档,在Azure工作区中没有提供传说排序选项。默认情况下,传说将始终按计数以降序排序。

您可以查看图表设置选项。

我尝试使用示例数据生成图表,并了解到这是预期的行为。

查询

AzureDiagnostics
| 根据OperationName汇总count()
| 按OperationName排序

结果

Kusto图例排序

图表设置配置

Kusto图例排序

英文:

As per documentation, there is no option provided for legend sorting on Azure workspaces. By default legends will always sort by count in descending order.
You can have look on chart-settings options.

I tried to generate chart using sample data and got to know that it is an expected behavior.

Query

AzureDiagnostics
| summarize  count() by OperationName
| sort  by OperationName

Result

Kusto图例排序

Chart Settings configuration

Kusto图例排序

huangapple
  • 本文由 发表于 2023年4月20日 00:20:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/76056796.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定