Histogram: support units on the x axis (#35218)

This commit is contained in:
Ryan McKinley
2021-06-04 10:42:53 -07:00
committed by GitHub
parent 3bbe6473b6
commit 99a6337e1f
3 changed files with 47 additions and 9 deletions

View File

@@ -27,8 +27,8 @@ export const HistogramPanel: React.FC<Props> = ({ data, options, width, height }
return undefined;
}
return histogramFieldsToFrame(hist);
}, [data.series, options]);
return histogramFieldsToFrame(hist, theme);
}, [data.series, options, theme]);
if (!histogram || !histogram.fields.length) {
return (