Applies to: ✅Microsoft Fabric✅Azure Data Explorer
The anomaly chart visualization is similar to a timechart, but highlights anomalies using the series_decompose_anomalies function.
Note
This visualization can only be used in the context of the render operator.
Syntax
T|renderanomalychart [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) |
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 列の値ごとに提供された値で構成される列のコンマ区切りのリスト。 |
ysplit |
視覚化を複数の y 軸の値に分割する方法。 For more information, see Multiple y-axes. |
ytitle |
y 軸のタイトル (string 型)。 |
anomalycolumns |
異常系列と見なされ、グラフ上に点として表示される列のコンマ区切りのリスト |
ysplit プロパティ
この視覚化では、複数の y 軸値への分割がサポートされています。 このプロパティでサポートされている値は次のとおりです。
ysplit |
Description |
|---|---|
none |
1 つの y 軸がすべての系列データに表示されます。 (Default) |
axes |
1 つのグラフに、複数の y 軸 (系列ごとに 1 つ) が表示されます。 |
panels |
ycolumn 値ごとに 1 つのグラフがレンダリングされます。 最大 5 つのパネル。 |
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. ワークスペース内のテーブルと一致するように、クエリ例のテーブル名を変更する必要がある場合があります。
let min_t = datetime(2017-01-05);
let max_t = datetime(2017-02-03 22:00);
let dt = 2h;
demo_make_series2
| make-series num=avg(num) on TimeStamp from min_t to max_t step dt by sid
| where sid == 'TS1' // select a single time series for a cleaner visualization
| extend (anomalies, score, baseline) = series_decompose_anomalies(num, 1.5, -1, 'linefit')
| render anomalychart with(anomalycolumns=anomalies, title='Web app. traffic of a month, anomalies') //use "| render anomalychart with anomalycolumns=anomalies" to render the anomalies as bold points on the series charts.