Skip to content

Commit

Permalink
[ML] label colors
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Apr 30, 2020
1 parent b1bdde5 commit 57c3532
Showing 1 changed file with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
EuiLoadingChart,
EuiResizeObserver,
EuiSpacer,
EuiText,
} from '@elastic/eui';
import { Observable } from 'rxjs';

Expand Down Expand Up @@ -90,17 +91,19 @@ export const ExplorerSwimlaneContainer: FC<ExplorerSwimlaneContainerProps> = ({
<EuiSpacer size="m" />

{chartWidth > 0 && swimlaneData && swimlaneType ? (
<MlTooltipComponent>
{tooltipService => (
<ExplorerSwimlane
chartWidth={chartWidth}
timeBuckets={timeBuckets}
swimlaneData={swimlaneData}
swimlaneType={swimlaneType}
tooltipService={tooltipService}
/>
)}
</MlTooltipComponent>
<EuiText color="subdued" size="s">
<MlTooltipComponent>
{tooltipService => (
<ExplorerSwimlane
chartWidth={chartWidth}
timeBuckets={timeBuckets}
swimlaneData={swimlaneData}
swimlaneType={swimlaneType}
tooltipService={tooltipService}
/>
)}
</MlTooltipComponent>
</EuiText>
) : (
<EuiFlexGroup justifyContent="spaceAround">
<EuiFlexItem grow={false}>
Expand Down

0 comments on commit 57c3532

Please sign in to comment.