Skip to content

Commit 613ebfc

Browse files
Merge pull request #769 from plotly/no-rounding-numeric-reciprocal
allow fractional values in NumericReciprocal
2 parents cc1a0ba + e951713 commit 613ebfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/fields/derived.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export const NumericReciprocal = connectToContainer(UnconnectedNumeric, {
305305
const {fullValue, updatePlot} = plotProps;
306306

307307
if (isNumeric(fullValue)) {
308-
plotProps.fullValue = Math.round(1 / fullValue);
308+
plotProps.fullValue = 1 / fullValue;
309309
}
310310

311311
plotProps.updatePlot = v => {
@@ -316,7 +316,7 @@ export const NumericReciprocal = connectToContainer(UnconnectedNumeric, {
316316
}
317317
};
318318

319-
plotProps.min = 1;
319+
plotProps.min = 0;
320320
},
321321
});
322322

0 commit comments

Comments
 (0)