File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,14 +69,14 @@ const yAxisInput = class {
69
69
this . symmetricYCheckbox . property ( "disabled" , dataObj . globalSettings . combined ) ;
70
70
71
71
if ( dataObj . globalSettings . combined ) {
72
- this . yMaxInput . node ( ) . value = roundUpWithPrecision ( dataObj . globalSettings . ymax - dataObj . globalSettings . ymin ) ;
72
+ this . yMaxInput . node ( ) . value = roundUpWithPrecision ( dataObj . globalSettings . ymax - dataObj . globalSettings . ymin ) . toPrecision ( 2 ) ;
73
73
this . yMinInput . node ( ) . value = 0
74
74
} else if ( dataObj . globalSettings . symmetricY ) {
75
- this . yMaxInput . node ( ) . value = roundUpWithPrecision ( Math . max ( dataObj . globalSettings . ymax , - dataObj . globalSettings . ymin ) ) ;
76
- this . yMinInput . node ( ) . value = roundUpWithPrecision ( Math . min ( - dataObj . globalSettings . ymax , dataObj . globalSettings . ymin ) )
75
+ this . yMaxInput . node ( ) . value = roundUpWithPrecision ( Math . max ( dataObj . globalSettings . ymax , - dataObj . globalSettings . ymin ) ) . toPrecision ( 2 ) ;
76
+ this . yMinInput . node ( ) . value = roundUpWithPrecision ( Math . min ( - dataObj . globalSettings . ymax , dataObj . globalSettings . ymin ) ) . toPrecision ( 2 )
77
77
} else {
78
- this . yMaxInput . node ( ) . value = roundUpWithPrecision ( dataObj . globalSettings . ymax ) ;
79
- this . yMinInput . node ( ) . value = roundUpWithPrecision ( dataObj . globalSettings . ymin )
78
+ this . yMaxInput . node ( ) . value = roundUpWithPrecision ( dataObj . globalSettings . ymax ) . toPrecision ( 2 ) ;
79
+ this . yMinInput . node ( ) . value = roundUpWithPrecision ( dataObj . globalSettings . ymin ) . toPrecision ( 2 )
80
80
}
81
81
}
82
82
You can’t perform that action at this time.
0 commit comments