You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: data-explorer/kusto/query/render-operator.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ three kinds of columns:
129
129
|`xtitle`|The title of the x-axis (of type `string`). |
130
130
|`yaxis`|How to scale the y-axis (`linear` or `log`). |
131
131
|`ycolumns`|Comma-delimited list of columns that consist of the values provided per value of the x column.|
132
-
|`ysplit`|How to split multiple the visualization. For more information, see [`y-split` property](#ysplit-property). |
132
+
|`ysplit`|How to split the visualization into multiple y-axis values. For more information, see [`y-split` property](#ysplit-property). |
133
133
|`ytitle`|The title of the y-axis (of type `string`). |
134
134
|`anomalycolumns`|Property relevant only for `anomalychart`. Comma-delimited list of columns, which will be considered as anomaly series and displayed as points on the chart|
135
135
@@ -177,7 +177,7 @@ Some visualizations support splitting into multiple y-axis values:
@@ -78,7 +90,11 @@ The supported values of this property are:
78
90
|`stacked`| Stack "areas" to the right. |
79
91
|`stacked100`| Stack "areas" to the right and stretch each one to the same width as the others. |
80
92
81
-
## Example
93
+
## Examples
94
+
95
+
### Simple area chart
96
+
97
+
The following example shows a basic area chart visualization.
82
98
83
99
:::moniker range="azure-data-explorer"
84
100
> [!div class="nextstepaction"]
@@ -90,4 +106,66 @@ demo_series3
90
106
| render areachart
91
107
```
92
108
93
-
:::image type="content" source="media/visualization-areachart/area-chart.png" alt-text="Screenshot of area chart visualization." lightbox="media/visualization-areachart/area-chart.png":::
109
+
:::image type="content" source="media/visualization-areachart/area-chart.png" alt-text="Screenshot of area chart visualization." lightbox="media/visualization-areachart/area-chart.png":::
110
+
111
+
### Area chart using properties
112
+
113
+
The following example shows an area chart using multiple property settings.
114
+
115
+
:::moniker range="azure-data-explorer"
116
+
> [!div class="nextstepaction"]
117
+
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA02Quw6DMAxF936FlQkkhvIBbB26dWj3ygQLLEiKgkOh6sc3UF6ebu6JnzetfYtWjxcS0sIve%2FpC541Bxx8CwL58Cpk2m1T0CIocincUJzOrvOGCZfzz6%2FKKIR8hZxs92FAnaNoE0ioOpR3ZghygI9QVOjlBiDdLBRHMeoqabQEZeBtSdU1FspGGSppZzx3nDe1kFJaGIFP30C2IHhtP6sAN25CXno8WDpCl54M1LFVATZOrZPI2uHZYtwQMo8h%2BEjX%2FjH%2FxorAnUwEAAA%3D%3D"target="_blank">Run the query</a>
118
+
::: moniker-end
119
+
120
+
```kusto
121
+
OccupancyDetection
122
+
| summarize avg_temp= avg(Temperature), avg_humidity= avg(Humidity) by bin(Timestamp, 1h)
123
+
| render areachart
124
+
with (
125
+
kind = unstacked,
126
+
legend = visible,
127
+
ytitle ="Sample value",
128
+
ymin = 10,
129
+
ymax =100,
130
+
xtitle = "Time",
131
+
title ="Humidity and temperature"
132
+
)
133
+
```
134
+
135
+
:::image type="content" source="media/visualization-areachart/area-chart-with-properties.png" alt-text="Screenshot of area chart visualization with properties." lightbox="media/visualization-areachart/area-chart-with-properties.png":::
The following example shows an area chart using split panels. In this example, the `ysplit` property is set to `panels`.
141
+
::: moniker-end
142
+
:::moniker range="azure-data-explorer"
143
+
> [!div class="nextstepaction"]
144
+
> <ahref="https://dataexplorer.azure.com/clusters/help/databases/Samples?query=H4sIAAAAAAAAA02RsW6DMBCG9zzFL08gMSQP4IG2kSpFyhAYuho4BUvGINskUPXhe0AbfIN1%2Fn7f%2Bfy7CL3rzg%2BywR9%2B8GzJEYqgAkFbJKI8f%2BWFyCCu57dbXlzyJb%2Fk14JpCmUbrLXlPBCkhPhU2ghu5MeuU05%2FE%2Bp%2BtEGua5KimrfuGSptE05dKHXH21OTcpkj25CDcqTqlrUDOJ46tEjWdInZD0YHiUFZMj57cUN3robEQ3tdGdqVue7N2Fm%2FTRFxNWkPafp7xIIOht8i3pezIhI6NkTiGBM1QZ6OEZq2jjDaknIR3yZgZX%2FyLv5dCfHBzrDBHC%2Fxf5zFWND6T2IV018qvG0uugEAAA%3D%3D"target="_blank">Run the query</a>
| where State in ("TEXAS", "NEBRASKA", "KANSAS") and EventType == "Hail"
152
+
| summarize count=count() by State, bin(StartTime, 1d)
153
+
| render areachart
154
+
with (
155
+
ysplit= panels,
156
+
legend = visible,
157
+
ycolumns=count,
158
+
yaxis =log,
159
+
ytitle ="Count",
160
+
ymin = 0,
161
+
ymax =100,
162
+
xaxis = linear,
163
+
xcolumn = StartTime,
164
+
xtitle = "Date",
165
+
title ="Hail events"
166
+
)
167
+
```
168
+
169
+
:::image type="content" source="media/visualization-areachart/area-chart-with-split-panels.png" alt-text="Screenshot of area chart visualization with split panels." lightbox="media/visualization-areachart/area-chart-with-split-panels.png":::
|`none`|A single y-axis is displayed for all series data. (Default) |
60
60
|`axes`|A single chart is displayed with multiple y-axes (one per series).|
61
-
|`panels`|One chart is rendered for each `ycolumn` value (up to some limit).|
61
+
|`panels`|One chart is rendered for each `ycolumn` value. Maximum five panels.|
62
62
63
63
## Examples
64
64
@@ -89,7 +89,7 @@ demo_make_series2
89
89
90
90
### Label a timechart
91
91
92
-
The following example renders a timechart that depicts crop damage grouped by week. The timechart x axis is labled "Date" and the y axis is labled "Crop damage."
92
+
The following example renders a timechart that depicts crop damage grouped by week. The timechart x axis is labeled "Date" and the y axis is labeled "Crop damage."
0 commit comments