次の方法で共有


Pie chart

Applies to: ✅Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

円グラフのビジュアルでは、クエリ結果に少なくとも 2 つの列が必要です。 既定では、最初の列は色軸として使用されます。 この列には、text、datetime、または numeric のデータ型を含めることができます。 その他の列は、各スライスのサイズを決定するために使用され、数値のデータ型が含まれます。 円グラフは、カテゴリの構成と全体に占めるその割合を表すために使用されます。

The pie 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|renderpiechart [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 プロパティ」を参照してください。
legend 凡例を表示するかどうか (visible または hidden)。
series レコードごとに結合された値によってそのレコードが属する系列が定義される、コンマ区切りの列のリスト。
title 視覚化のタイトル (string 型)。
xaxis x 軸のスケールを設定する方法 (linear または log)。
xcolumn x 軸に使用される結果の列。
xtitle x 軸のタイトル (string 型)。
yaxis y 軸のスケールを設定する方法 (linear または log)。
ycolumns x 列の値ごとに提供された値で構成される列のコンマ区切りのリスト。
ytitle y 軸のタイトル (string 型)。
PropertyName PropertyValue
kind 視覚化の種類のさらに詳細な設定。 詳細については、「 kind プロパティ」を参照してください。
series レコードごとに結合された値によってそのレコードが属する系列が定義される、コンマ区切りの列のリスト。
title 視覚化のタイトル (string 型)。

kind プロパティ

この視覚化は、 kind プロパティを指定することでさらに詳しく説明できます。 このプロパティでサポートされている値は次のとおりです。

kind Description
map 予期される列は、[経度、緯度]、GeoJSON ポイント、カラー軸、および数値です。 Kusto Explorer デスクトップでサポートされます。 For more information, see Geospatial visualizations

Example

The examples in this article use publicly available tables in the help cluster, such as the StormEvents table in the Samples database.

The examples in this article use publicly available tables, such as the Weather table in the Weather analytics sample gallery. ワークスペース内のテーブルと一致するように、クエリ例のテーブル名を変更する必要がある場合があります。

このクエリは、上位 10 個の状態を視覚的に表現し、最も多い数の Storm イベントを円グラフとして表示します。

StormEvents
| summarize statecount=count() by State
| sort by statecount 
| limit 10
| render piechart with(title="Storm Events by State")

円グラフの視覚化の出力のスクリーンショット。