diff --git a/Scales/ChartGrid.js b/Scales/ChartGrid.js index 3ceb3bd35..a0ea51d17 100644 --- a/Scales/ChartGrid.js +++ b/Scales/ChartGrid.js @@ -510,10 +510,10 @@ /* Now we put the scale on the right side of the chart */ - drawRigthScale() + drawRateScale() drawLeftScale() - function drawRigthScale () { + function drawRateScale () { /* And now the scale. */ let fontSize = 10 diff --git a/Scales/RightScale.js b/Scales/RateScale.js similarity index 99% rename from Scales/RightScale.js rename to Scales/RateScale.js index 2edb711f1..670128339 100644 --- a/Scales/RightScale.js +++ b/Scales/RateScale.js @@ -1,4 +1,4 @@ -function newRigthScale () { +function newRateScale () { const MODULE_NAME = 'Right Scale' const INFO_LOG = false const INTENSIVE_LOG = false @@ -214,4 +214,3 @@ to be visible at the top of the viewPort. */ browserCanvasContext.stroke() } } - diff --git a/TimeMachine.js b/TimeMachine.js index efbc9df25..d25a9aaa1 100644 --- a/TimeMachine.js +++ b/TimeMachine.js @@ -114,7 +114,7 @@ function newTimeMachine () { timeScale.initialize(timeLineCoordinateSystem) - rigthScale = newRigthScale() + rigthScale = newRateScale() rigthScale.container.connectToParent(thisObject.container, false, false) rigthScale.container.eventHandler.listenToEvent('Height Percentage Changed', function (event) { thisObject.container.frame.height = TIME_MACHINE_HEIGHT * event.heightPercentage / 100