@@ -26,10 +26,10 @@ import {Line} from 'sentry/views/dashboards/widgets/timeSeriesWidget/plottables/
26
26
import { TimeSeriesWidgetVisualization } from 'sentry/views/dashboards/widgets/timeSeriesWidget/timeSeriesWidgetVisualization' ;
27
27
import { Widget } from 'sentry/views/dashboards/widgets/widget/widget' ;
28
28
import { EXPLORE_CHART_TYPE_OPTIONS } from 'sentry/views/explore/charts' ;
29
- import { ConfidenceFooter } from 'sentry/views/explore/charts/confidenceFooter' ;
30
- import { getProgressiveLoadingIndicator } from 'sentry/views/explore/components/progressiveLoadingIndicator' ;
29
+ import { WidgetExtrapolationFooter } from 'sentry/views/explore/charts/widgetExtrapolationFooter' ;
31
30
import { Mode } from 'sentry/views/explore/contexts/pageParamsContext/mode' ;
32
31
import { useChartInterval } from 'sentry/views/explore/hooks/useChartInterval' ;
32
+ import type { SamplingMode } from 'sentry/views/explore/hooks/useProgressiveQuery' ;
33
33
import { useAddCompareQueryToDashboard } from 'sentry/views/explore/multiQueryMode/hooks/useAddCompareQueryToDashboard' ;
34
34
import { DEFAULT_TOP_EVENTS } from 'sentry/views/explore/multiQueryMode/hooks/useMultiQueryTimeseries' ;
35
35
import {
@@ -49,7 +49,7 @@ export interface MultiQueryChartProps {
49
49
mode : Mode ;
50
50
query : ReadableExploreQueryParts ;
51
51
timeseriesResult : ReturnType < typeof useSortedTimeSeries > ;
52
- isProgressivelyLoading ?: boolean ;
52
+ samplingMode ?: SamplingMode ;
53
53
}
54
54
55
55
export const EXPLORE_CHART_GROUP = 'multi-query-charts_group' ;
@@ -60,7 +60,7 @@ export function MultiQueryModeChart({
60
60
mode,
61
61
timeseriesResult,
62
62
canUsePreviousResults,
63
- isProgressivelyLoading ,
63
+ samplingMode ,
64
64
} : MultiQueryChartProps ) {
65
65
const theme = useTheme ( ) ;
66
66
@@ -133,7 +133,10 @@ export function MultiQueryModeChart({
133
133
] ) ;
134
134
135
135
const { data, error, loading} = getSeries ( ) ;
136
- const { sampleCount, isSampled} = determineSeriesSampleCountAndIsSampled ( data , isTopN ) ;
136
+ const { sampleCount, isSampled, dataScanned} = determineSeriesSampleCountAndIsSampled (
137
+ data ,
138
+ isTopN
139
+ ) ;
137
140
138
141
const visualizationType =
139
142
queryParts . chartType === ChartType . LINE
@@ -169,9 +172,20 @@ export function MultiQueryModeChart({
169
172
key = { index }
170
173
height = { CHART_HEIGHT }
171
174
Title = { Title }
172
- TitleBadges = { [ getProgressiveLoadingIndicator ( isProgressivelyLoading ) ] }
173
175
Visualization = { < TimeSeriesWidgetVisualization . LoadingPlaceholder /> }
174
176
revealActions = "always"
177
+ Footer = {
178
+ organization . features . includes ( 'visibility-explore-progressive-loading' ) && (
179
+ < WidgetExtrapolationFooter
180
+ samplingMode = { undefined }
181
+ sampleCount = { 0 }
182
+ isSampled = { null }
183
+ confidence = { undefined }
184
+ topEvents = { undefined }
185
+ dataScanned = { undefined }
186
+ />
187
+ )
188
+ }
175
189
/>
176
190
) ;
177
191
}
@@ -259,7 +273,6 @@ export function MultiQueryModeChart({
259
273
key = { index }
260
274
height = { CHART_HEIGHT }
261
275
Title = { Title }
262
- TitleBadges = { [ getProgressiveLoadingIndicator ( isProgressivelyLoading ) ] }
263
276
Actions = { [
264
277
< Tooltip
265
278
key = "visualization"
@@ -324,11 +337,13 @@ export function MultiQueryModeChart({
324
337
/>
325
338
}
326
339
Footer = {
327
- < ConfidenceFooter
340
+ < WidgetExtrapolationFooter
328
341
sampleCount = { sampleCount }
329
- confidence = { confidence }
330
342
isSampled = { isSampled }
343
+ confidence = { confidence }
331
344
topEvents = { isTopN ? numSeries : undefined }
345
+ dataScanned = { dataScanned }
346
+ samplingMode = { samplingMode }
332
347
/>
333
348
}
334
349
/>
0 commit comments