Skip to content

Commit

Permalink
update chart
Browse files Browse the repository at this point in the history
  • Loading branch information
fkanout committed Dec 27, 2024
1 parent 698d2c9 commit aeeb886
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import moment from 'moment';
import React, { useCallback } from 'react';
import { fromQuery, toQuery } from '@kbn/observability-plugin/public';
import { useTheme } from '@kbn/observability-shared-plugin/public';
import { useEuiTheme } from '@elastic/eui';
import { AllSeries, RECORDS_FIELD } from '@kbn/exploratory-view-plugin/public';
import { useHistory } from 'react-router-dom';

Expand All @@ -31,7 +31,7 @@ export function PageViewsChart({ breakdown }: Props) {

const { uxUiFilters, urlParams } = useLegacyUrlParams();

const theme = useTheme();
const { euiTheme } = useEuiTheme();

const { reportDefinitions, time } = useExpViewAttributes();

Expand All @@ -43,7 +43,7 @@ export function PageViewsChart({ breakdown }: Props) {
name: 'ux-series-1',
selectedMetricField: RECORDS_FIELD,
breakdown: breakdown?.fieldName,
color: theme.eui.euiColorVis1,
color: euiTheme.colors.vis.euiColorVis1,
filters: getExploratoryViewFilter(uxUiFilters, urlParams),
},
];
Expand Down

0 comments on commit aeeb886

Please sign in to comment.