Fix comma causing Terser issue (#9326)

This commit is contained in:
Tycho Bokdam 2021-06-28 21:37:21 +02:00 committed by GitHub
parent 4bdb57df8c
commit e5dee9f88e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ function generateTicks(generationOptions, dataRange) {
// until this point
const decimalPlaces = Math.max(
_decimalPlaces(spacing),
_decimalPlaces(niceMin),
_decimalPlaces(niceMin)
);
factor = Math.pow(10, isNullOrUndef(precision) ? decimalPlaces : precision);
niceMin = Math.round(niceMin * factor) / factor;