@@ -227,9 +276,7 @@ export function DiscoverHistogram({
/>
-
- {timeRangeText}
-
+ {timeRange}
);
}
diff --git a/src/plugins/discover/public/application/apps/main/components/chart/use_chart_panels.ts b/src/plugins/discover/public/application/apps/main/components/chart/use_chart_panels.ts
index 72f921bca5f53..3660173ef761d 100644
--- a/src/plugins/discover/public/application/apps/main/components/chart/use_chart_panels.ts
+++ b/src/plugins/discover/public/application/apps/main/components/chart/use_chart_panels.ts
@@ -12,8 +12,7 @@ import type {
} from '@elastic/eui';
import { search } from '../../../../../../../data/public';
import { AppState } from '../../services/discover_state';
-import { DataCharts$, DataChartsMessage } from '../../services/use_saved_search';
-import { useDataState } from '../../utils/use_data_state';
+import { DataCharts$ } from '../../services/use_saved_search';
export function useChartPanels(
state: AppState,
@@ -22,8 +21,6 @@ export function useChartPanels(
onChangeInterval: (value: string) => void,
closePopover: () => void
) {
- const dataState: DataChartsMessage = useDataState(savedSearchDataChart$);
- const { bucketInterval } = dataState;
const { interval, hideChart } = state;
const selectedOptionIdx = search.aggs.intervalOptions.findIndex((opt) => opt.val === interval);
const intervalDisplay =
@@ -56,29 +53,6 @@ export function useChartPanels(
timeInterval: intervalDisplay,
},
}),
- icon: bucketInterval?.scaled ? 'alert' : '',
- toolTipTitle: bucketInterval?.scaled
- ? i18n.translate('discover.timeIntervalWithValueWarning', {
- defaultMessage: 'Warning',
- })
- : '',
- toolTipContent: bucketInterval?.scaled
- ? i18n.translate('discover.bucketIntervalTooltip', {
- defaultMessage:
- 'This interval creates {bucketsDescription} to show in the selected time range, so it has been scaled to {bucketIntervalDescription}.',
- values: {
- bucketsDescription:
- bucketInterval!.scale && bucketInterval!.scale > 1
- ? i18n.translate('discover.bucketIntervalTooltip.tooLargeBucketsText', {
- defaultMessage: 'buckets that are too large',
- })
- : i18n.translate('discover.bucketIntervalTooltip.tooManyBucketsText', {
- defaultMessage: 'too many buckets',
- }),
- bucketIntervalDescription: bucketInterval?.description,
- },
- })
- : '',
panel: 1,
'data-test-subj': 'discoverTimeIntervalPanel',
});