Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions static/app/views/detectors/hooks/useMetricDetectorSeries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ interface UseMetricDetectorSeriesResult {
series: Series[];
}

function applySharedSeriesOptions(series: Series[]): Series[] {
return series.map(s => ({
...s,
// Disable mouse hover emphasis effect on series points
emphasis: {disabled: true},
}));
}

/**
* Make the request to the backend provided series query and transform into a series
*/
Expand Down Expand Up @@ -106,8 +114,8 @@ export function useMetricDetectorSeries({
: [];

return {
series: transformedSeries,
comparisonSeries: transformedComparisonSeries,
series: applySharedSeriesOptions(transformedSeries),
comparisonSeries: applySharedSeriesOptions(transformedComparisonSeries),
};
}, [datasetConfig, data, aggregate, comparisonDelta]);

Expand Down
Loading