英文:
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.
答案1
得分: 0
根据文档,在Azure工作区中没有提供传说排序选项。默认情况下,传说将始终按计数以降序排序。
您可以查看图表设置选项。
我尝试使用示例数据生成图表,并了解到这是预期的行为。
查询
AzureDiagnostics
| 根据OperationName汇总count()
| 按OperationName排序
结果
图表设置配置
英文:
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
Chart Settings configuration
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论