File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,14 +69,14 @@ const yAxisInput = class {
6969 this . symmetricYCheckbox . property ( "disabled" , dataObj . globalSettings . combined ) ;
7070
7171 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 ) ;
7373 this . yMinInput . node ( ) . value = 0
7474 } 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 )
7777 } 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 )
8080 }
8181 }
8282
You can’t perform that action at this time.
0 commit comments