Skip to content

Commit

Permalink
Visualization breakdowns (opensearch-project#1201)
Browse files Browse the repository at this point in the history
* breakdown and related changes

Signed-off-by: Eric Wei <[email protected]>

* minor code removals

Signed-off-by: Eric Wei <[email protected]>

* data table fix

Signed-off-by: Eric Wei <[email protected]>

Signed-off-by: Eric Wei <[email protected]>
  • Loading branch information
mengweieric authored Nov 1, 2022
1 parent 2a5ebe1 commit 7adbea2
Show file tree
Hide file tree
Showing 38 changed files with 1,511 additions and 7,977 deletions.
12 changes: 9 additions & 3 deletions common/constants/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,13 @@ export enum ConfigChartOptionsEnum {
export const CUSTOM_LABEL = 'customLabel';
export const BREAKDOWNS = 'breakdowns';
export const SPAN = 'span';
export const AGGREGATION_INFO = 'At least one metric is required to render a chart';
export const DIMENSION_INFO = 'The timestamp type field can be selected as a first dimension only';
export const TIME_FIELD = 'time_field';
export const DISABLED_COLOUR = "#fafbfd";
export const DISABLED_COLOUR = '#fafbfd';
export const DATA_CONFIG_HINTS_INFO = {
[AGGREGATIONS]:
'Series is an aggregation function (mandatory). The argument of an aggregation must be a field.',
[GROUPBY]:
"Dimensions are 'by' clauses. They are fields or expressions like scalar and aggregation functions. Besides, the span clause for a dimension can be used to split a specific field into buckets in the same interval, the stats then does the aggregation by these span buckets.",
[BREAKDOWNS]:
"Defines how each series is broken down. Breakdowns are 'by' clauses that subdivide the existing series.",
};
4 changes: 3 additions & 1 deletion common/constants/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const DEFAULT_CHART_STYLES: DefaultChartStylesProps = {
DefaultModeLine: 'lines',
Interpolation: 'spline',
LineWidth: 2,
FillOpacity: 40,
FillOpacity: 70,
MarkerSize: 5,
ShowLegend: 'show',
LegendPosition: 'v',
Expand Down Expand Up @@ -187,3 +187,5 @@ export const PLOT_MARGIN = {
t: 50,
pad: 4,
};

export const WAITING_TIME_ON_USER_ACTIONS = 300;
Loading

0 comments on commit 7adbea2

Please sign in to comment.