Skip to content

Commit

Permalink
use isHistogram
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Oct 6, 2020
1 parent 751f785 commit c2594d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x-pack/plugins/lens/public/xy_visualization/expression.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
? {
Expand Down

0 comments on commit c2594d8

Please sign in to comment.