From ec97091e9af94c42c88e61a8591d0e896eac7060 Mon Sep 17 00:00:00 2001 From: Jakob Zethofer Date: Mon, 7 Mar 2022 13:32:26 +0100 Subject: [PATCH] fixed x-minimum --- src/visual.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/visual.ts b/src/visual.ts index 826194a..c1d4d85 100644 --- a/src/visual.ts +++ b/src/visual.ts @@ -265,7 +265,7 @@ export class Visual implements IVisual { try { const generalPlotSettings = this.viewModel.generalPlotSettings const xAxis = plot.append('g').classed('xAxis', true); - const xScale = scaleLinear().domain([0, plotModel.xRange.max]).range([0, generalPlotSettings.plotWidth]); + const xScale = scaleLinear().domain([plotModel.xRange.min, plotModel.xRange.max]).range([0, generalPlotSettings.plotWidth]); const xAxisValue = axisBottom(xScale); let xLabel = null; if (!plotModel.formatSettings.axisSettings.xAxis.ticks) {