Skip to content

Commit b786f72

Browse files
committed
Improved computing of top margin value at vs RPM charts
1 parent ab3bb18 commit b786f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph_spectrum_calc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ GraphSpectrumCalc._getFlightSamplesFreqVsX = function(vsFieldNames, minValue = I
482482

483483
// Use small top margin for RPM axis only. Because it has bad axis view for throttle
484484
if (vsFieldNames == FIELD_RPM_NAMES) {
485-
maxValue *= 1 + RPM_AXIS_TOP_MARGIN_PERCENT / 100;
485+
maxValue += (maxValue - minValue) * RPM_AXIS_TOP_MARGIN_PERCENT / 100;
486486
}
487487

488488
if (minValue > maxValue) {

0 commit comments

Comments
 (0)