-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tyler Ohlsen <[email protected]>
- Loading branch information
Showing
3 changed files
with
75 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
33 changes: 33 additions & 0 deletions
33
src/plugins/vis_augmenter/public/components/timeline_panel.tsx
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,33 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; | ||
import { getEmbeddable } from '../services'; | ||
import './styles.scss'; | ||
import { VisualizeEmbeddable } from '../../../visualizations/public'; | ||
|
||
interface Props { | ||
embeddable: VisualizeEmbeddable; | ||
} | ||
|
||
export function TimelinePanel(props: Props) { | ||
const PanelComponent = getEmbeddable().getEmbeddablePanel(); | ||
return ( | ||
<EuiFlexGroup direction="row" gutterSize="s"> | ||
<EuiFlexItem grow={false} className="view-events-flyout__visDescription"> | ||
This will be the static timeline chart | ||
</EuiFlexItem> | ||
<EuiFlexItem grow={true} className="view-events-flyout__eventVis"> | ||
<PanelComponent | ||
embeddable={props.embeddable} | ||
hideHeader={true} | ||
hasBorder={false} | ||
hasShadow={false} | ||
/> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); | ||
} |
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