Skip to content

Commit

Permalink
fixed x-minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
jzethofer committed Mar 7, 2022
1 parent 79757ba commit ec97091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/visual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ec97091

Please sign in to comment.