-
Notifications
You must be signed in to change notification settings - Fork 909
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into app_filter_query_persistence
- Loading branch information
Showing
88 changed files
with
814 additions
and
5,876 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
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
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
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
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
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
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,35 @@ | ||
Contains the data table visualization, that allows presenting data in a simple table format. | ||
# Data Table | ||
|
||
This is an OpenSearch Dashboards plugin that is used to visualize data and aggregations in tabular format. | ||
|
||
## Create Data Table | ||
To create a data table in OpenSearch Dashboards, first select `Visualize` from the navigation menu. Then click `Create Visualization` and choose `Data Table` as the visualization type. | ||
|
||
## Select Metrics | ||
|
||
### Metrics Aggregation | ||
At the `Metrics`, select the metric aggregation type from the menu and configure it accordingly. You could also add multiple metrics and each metrics is a separate column in table visualization. | ||
|
||
### Buckets Aggregation | ||
At the `Buckets`, configure the columns to be displayed in the table visualization. | ||
- `Split Rows` is used when you want to divide one row into more based on some category. It splits one row into multiple and add columns based on the categories you choose to split. For example, if you split the data based on gender then you want to know more on each gender's clothing preference. You could click `Split Rows` and input `clothing.category` in terms. Each gender's data is now split across to multiple rows based on a new added column `clothing.category`. | ||
- `Split Table` splits the table into separate tables for the aggregation you choose. It is similar to `Split Rows`, but this time each row becomes a single table with aggregation columns arranged horizontally or vertically. | ||
|
||
## Select Options | ||
In the `Options` tab, you can configure more options. | ||
- `Max rows per page` is the maximum number of rows displayed per page. | ||
- `Show metrics for every bucket/level` adds metrics aggregation to every column. | ||
- `Show partial rows` will include data with missing columns. | ||
- `Show total` calculates the selected metrics per column and displays the result at the bottom. Warning - depending on your columns and the total aggregation function selected, this may generate statistically invalid results. For example, avoid summing or averaging averages. | ||
- `Percentage column` adds one percentage column based on the chosen metrics aggregation. | ||
|
||
## Example | ||
|
||
Below is an example of creating a table visualization using sample ecommerce data. | ||
|
||
- Create a new data table visualization and set a relative time 15 weeks ago. | ||
- Compute the count of ecommerce: Choose `Count` in Metrics Aggregation. | ||
- Split the rows on the top 5 of `manufacturer.keyword` ordered by `Metric:Count` in descending and add a label "manufacturer". | ||
- Split the table in rows on the top 5 of `geoip.city_name` ordered by `Metric:Count` in ascending order. | ||
- Click the `Save` button on the top left and save the visualization as "Top manufacturers by count per city". | ||
- Choose a table and click the download icon to download the table. |
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
5 changes: 1 addition & 4 deletions
5
src/plugins/vis_type_table/public/__snapshots__/table_vis_fn.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
115 changes: 115 additions & 0 deletions
115
src/plugins/vis_type_table/public/__snapshots__/to_ast.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
src/plugins/vis_type_table/public/agg_table/_agg_table.scss
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
src/plugins/vis_type_table/public/agg_table/agg_table.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.