-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add axis types as chart operator flags (#4157)
Relevant for tenzir/issues#1256.
- Loading branch information
Showing
8 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
The chart operator now accepts the flags `--x-axis-type` and `--y-axis-type` | ||
for `bar`, `line`, and `area` charts, with the possible values being `log` and | ||
`linear`, with `linear` as the default value. Setting these flags defines the | ||
scale (logarithmic or linear) on the Tenzir App chart visualization. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tenzir/integration/data/reference/pipelines_local/test_chart_arguments/step_04.ref
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
error: failed to infer fields to use for charting | ||
= hint: either specify `x` and `y` as arguments explicitly, or none of them, and utilize the `select` operator | ||
= usage: chart bar [-x|--x-axis <field>] [--position <position>] [-y|--y-axis <fields>] | ||
= usage: chart bar [-x|--x-axis <field>] [--position <position>] [--x-axis-type <x_axis_type>] [--y-axis-type <y_axis_type>] [-y|--y-axis <fields>] |
2 changes: 1 addition & 1 deletion
2
tenzir/integration/data/reference/vast/test_bar_chart/step_01.ref
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"chart": "bar", "position": "grouped", "x": "id.orig_h", "y": "count"} | ||
{"chart": "bar", "position": "grouped", "x": "id.orig_h", "x_axis_type": "linear", "y": "count", "y_axis_type": "linear"} |
2 changes: 1 addition & 1 deletion
2
tenzir/integration/data/reference/vast/test_bar_chart/step_03.ref
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"chart": "bar", "position": "grouped", "x": "id.orig_h", "y": "count"} | ||
{"chart": "bar", "position": "grouped", "x": "id.orig_h", "x_axis_type": "linear", "y": "count", "y_axis_type": "linear"} |
2 changes: 1 addition & 1 deletion
2
tenzir/integration/data/reference/vast/test_line_chart/step_01.ref
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"chart": "line", "position": "grouped", "x": "ts", "y": "orig_bytes"} | ||
{"chart": "line", "position": "grouped", "x": "ts", "x_axis_type": "linear", "y": "orig_bytes", "y_axis_type": "linear"} |
2 changes: 1 addition & 1 deletion
2
tenzir/integration/data/reference/vast/test_line_chart/step_03.ref
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"chart": "line", "position": "grouped", "x": "ts", "y": "orig_bytes"} | ||
{"chart": "line", "position": "grouped", "x": "ts", "x_axis_type": "linear", "y": "orig_bytes", "y_axis_type": "linear"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters