Skip to content

Commit

Permalink
Support rendering VisLayers in vega charts
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed Mar 8, 2023
1 parent 252d73d commit fe07f04
Show file tree
Hide file tree
Showing 23 changed files with 1,827 additions and 495 deletions.
2 changes: 1 addition & 1 deletion src/plugins/vis_augmenter/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Contains interfaces and type definitions used for allowing external plugins to augment Visualizations. Registers the relevant saved object types and expression functions.
Contains interfaces, type definitions, helper functions, and services used for allowing external plugins to augment Visualizations. Registers the relevant saved object types and expression functions.
8 changes: 7 additions & 1 deletion src/plugins/vis_augmenter/opensearch_dashboards.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@
"version": "opensearchDashboards",
"server": true,
"ui": true,
"requiredPlugins": ["data", "savedObjects", "opensearchDashboardsUtils", "expressions"]
"requiredPlugins": [
"data",
"savedObjects",
"opensearchDashboardsUtils",
"expressions",
"visTypeVega"
]
}
7 changes: 7 additions & 0 deletions src/plugins/vis_augmenter/public/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

export const VIS_LAYER_COLUMN_TYPE = 'vis_layer';
export const EVENT_COLOR = 'red';
6 changes: 6 additions & 0 deletions src/plugins/vis_augmenter/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ export {
VisLayerFunctionDefinition,
VisLayer,
VisLayers,
VisLayerTypes,
PointInTimeEvent,
PointInTimeEventsVisLayer,
isPointInTimeEventsVisLayer,
} from './types';

export * from './expressions';
export * from './utils';
export * from './constants';
export * from './vega';
Loading

0 comments on commit fe07f04

Please sign in to comment.