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: docs/user/ppl/cmd/chart.rst
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,28 +30,29 @@ Syntax
30
30
31
31
**Parameters:**
32
32
33
-
* **limit**: optional. Specifies the number of distinct values to display when using column split.
33
+
* **limit**: optional. Specifies the number of categories to display when using column split. Each unique value in the column split field represents a category.
34
34
35
35
* Default: top10
36
36
* Syntax: ``limit=(top|bottom)<number>`` or ``limit=<number>`` (defaults to top)
37
-
* When ``limit=K`` is set, the top or bottom K distinct column split values are retained; the additional values are grouped into an "OTHER" category if ``useother`` is not set to false.
38
-
* Set limit to 0 to show all distinct values without any limit.
39
-
* Use ``limit=topK`` or ``limit=bottomK`` to specify whether to retain the top or bottom K column categories. The ranking is based on the aggregated values for each distinct column-split value. For example, ``chart limit=top3 count() by a b`` retains the 3 most common b categories; ``chart limit=top5 min(value) by a b`` selects the 5 b categories that contains smallest aggregated values. If not specified, top is used by default.
40
-
* Only applies when column split presents (by 2 fields or over...by... coexists).
37
+
* When ``limit=K`` is set, the top or bottom K categories from the column split field are retained; the remaining categories are grouped into an "OTHER" category if ``useother`` is not set to false.
38
+
* Set limit to 0 to show all categories without any limit.
39
+
* Use ``limit=topK`` or ``limit=bottomK`` to specify whether to retain the top or bottom K column categories. The ranking is based on the aggregated values for each category. For example, ``chart limit=top3 count() by a b`` retains the 3 most common b categories; ``chart limit=top5 min(value) by a b`` selects the 5 b categories that contain the smallest aggregated values. If not specified, top is used by default.
40
+
* Only applies when column split is present (by 2 fields or over...by... coexists).
41
41
42
-
* **useother**: optional. Controls whether to create an "OTHER" category for distinct column-split values beyond the limit.
42
+
* **useother**: optional. Controls whether to create an "OTHER" category for categories beyond the limit.
43
43
44
44
* Default: true
45
-
* When set to false, only the top/bottom N distinct column-split values (based on limit) are shown without an "OTHER" category.
46
-
* When set to true, distinct values beyond the limit are grouped into an "OTHER" category.
47
-
* Only applies when using column split and when there are more distinct column-split values than the limit.
45
+
* When set to false, only the top/bottom N categories (based on limit) are shown without an "OTHER" category.
46
+
* When set to true, categories beyond the limit are grouped into an "OTHER" category.
47
+
* Only applies when using column split and when there are more categories than the limit.
48
48
49
49
* **usenull**: optional. Controls whether to group events without a column split (i.e. whose column split is null) into a separate "NULL" category.
50
50
51
51
* Default: true
52
+
* ``usenull`` only applies to column split.
53
+
* Row split should always be non-null value. Events with null values in row split will be ignored.
52
54
* When ``usenull=false``, events with a null column split are excluded from results.
53
55
* When ``usenull=true``, events with a null column split are grouped into a separate "NULL" category.
54
-
* ``usenull`` only applies to column split. Null values in the row split are handled in the same way as normal aggregations.
55
56
56
57
* **nullstr**: optional. Specifies the category name for rows that do not contain the column split value.
0 commit comments