Skip to content

Commit

Permalink
us proper theme
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Oct 30, 2024
1 parent 4d4de51 commit acc4540
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import React from 'react';
import { ALL_VALUE, HistoricalSummaryResponse, SLOWithSummaryResponse } from '@kbn/slo-schema';
import {
Chart,
DARK_THEME,
isMetricElementEvent,
Metric,
MetricTrendShape,
Expand Down Expand Up @@ -77,8 +76,11 @@ export function SloCardChartList({ sloId }: { sloId: string }) {
const {
http: { basePath },
uiSettings,
charts,
} = useKibana().services;

const baseTheme = charts.theme.useChartsBaseTheme();

const [selectedSlo, setSelectedSlo] = React.useState<SLOWithSummaryResponse | null>(null);

const kqlQuery = `slo.id:"${sloId}"`;
Expand Down Expand Up @@ -156,7 +158,7 @@ export function SloCardChartList({ sloId }: { sloId: string }) {
<div data-shared-item="" style={{ width: '100%' }}>
<Chart>
<Settings
baseTheme={DARK_THEME}
baseTheme={baseTheme}
onElementClick={([d]) => {
if (isMetricElementEvent(d)) {
const { columnIndex, rowIndex } = d;
Expand Down

0 comments on commit acc4540

Please sign in to comment.