We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fa774c commit 6587dfbCopy full SHA for 6587dfb
1 file changed
x-pack/plugins/lens/public/xy_visualization/expression.tsx
@@ -388,11 +388,15 @@ export function XYChart({
388
const isTimeViz = data.dateRange && filteredLayers.every((l) => l.xScaleType === 'time');
389
const isHistogramViz = filteredLayers.every((l) => l.isHistogram);
390
391
- const xDomain = {
392
- min: isTimeViz ? data.dateRange?.fromDate.getTime() : undefined,
393
- max: isTimeViz ? data.dateRange?.toDate.getTime() : undefined,
394
- minInterval,
395
- };
+ const xDomain = isTimeViz
+ ? {
+ min: data.dateRange?.fromDate.getTime(),
+ max: data.dateRange?.toDate.getTime(),
+ minInterval,
396
+ }
397
+ : isHistogramViz
398
+ ? { minInterval }
399
+ : undefined;
400
401
const getYAxesTitles = (
402
axisSeries: Array<{ layer: string; accessor: string }>,
0 commit comments