forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Table Visualization] Replace table visualization with React and Data…
…Grid Issue Resolved: opensearch-project#2855
- Loading branch information
Showing
68 changed files
with
747 additions
and
5,370 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
12 changes: 12 additions & 0 deletions
12
src/plugins/vis_builder/public/visualizations/table/types.ts
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,12 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export enum AggTypes { | ||
SUM = 'sum', | ||
AVG = 'avg', | ||
MIN = 'min', | ||
MAX = 'max', | ||
COUNT = 'count', | ||
} |
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,36 @@ | ||
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 config it accordinly. | ||
|
||
### Buckets Aggregation | ||
At the `Buckets`, config the columns to be displayed in the table visualization. | ||
- `Split Rows` allows you to add another column to the table. | ||
- `Split Table` splits the table into seperate tables for the aggregation you choose. | ||
|
||
## Select Options | ||
In the `Options` tab, you could config 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 columns. | ||
- `Show partial rows` will include data with missing columns. | ||
- `Show total` calculates the selected metrics per column and displays the result at the bottom. | ||
- `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". | ||
geoip.city_name | ||
- 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
47 changes: 0 additions & 47 deletions
47
src/plugins/vis_type_table/public/__snapshots__/table_vis_fn.test.ts.snap
This file was deleted.
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.
Oops, something went wrong.