diff --git a/x-pack/plugins/lens/public/xy_visualization/expression.tsx b/x-pack/plugins/lens/public/xy_visualization/expression.tsx index 6c4f188cd4608..a034b8a6e5fba 100644 --- a/x-pack/plugins/lens/public/xy_visualization/expression.tsx +++ b/x-pack/plugins/lens/public/xy_visualization/expression.tsx @@ -337,9 +337,7 @@ export function XYChart({ } const isTimeViz = data.dateRange && filteredLayers.every((l) => l.xScaleType === 'time'); - const isHistogramViz = filteredLayers.every( - (l) => l.xScaleType === 'time' || l.xScaleType === 'linear' - ); + const isHistogramViz = filteredLayers.every((l) => l.isHistogram); const xDomain = isTimeViz ? {