@@ -74,7 +74,7 @@ module.exports = function() {
7474 // Marks scale border positions to prevent overlapping of gridLines and scale borders
7575 helpers . each ( chart . scales , function ( scale ) {
7676 var scaleOptions = scale . options ;
77- var glHashByOrientantion = gridLinesHash [ ! scale . isHorizontal ( ) ? 'horizontal' : 'vertical' ] ;
77+ var glHashByOrientation = gridLinesHash [ ! scale . isHorizontal ( ) ? 'horizontal' : 'vertical' ] ;
7878 var borderPosition ;
7979
8080 // gridLines.drawBorder is deprecated
@@ -85,14 +85,14 @@ module.exports = function() {
8585 borderPosition = scale . position === 'left' ? scale . right : scale . left ;
8686 }
8787
88- glHashByOrientantion [ Math . round ( borderPosition ) ] = true ;
88+ glHashByOrientation [ Math . round ( borderPosition ) ] = true ;
8989 }
9090 } ) ;
9191
9292 // Collects gridLines
9393 helpers . each ( chart . scales , function ( scale ) {
9494 var scaleOptions = scale . options ;
95- var glHashByOrientantion = gridLinesHash [ scale . isHorizontal ( ) ? 'horizontal' : 'vertical' ] ;
95+ var glHashByOrientation = gridLinesHash [ scale . isHorizontal ( ) ? 'horizontal' : 'vertical' ] ;
9696 var position ;
9797
9898 if ( scaleOptions . display && scaleOptions . gridLines . display && scaleOptions . gridLines . drawOnChartArea ) {
@@ -103,8 +103,8 @@ module.exports = function() {
103103
104104 position = getLineValue ( scale , tickIndex , scaleOptions . gridLines . offsetGridLines && ticksCount > 1 ) ;
105105
106- if ( glHashByOrientantion [ position ] === undefined ) {
107- glHashByOrientantion [ position ] = true ;
106+ if ( glHashByOrientation [ position ] === undefined ) {
107+ glHashByOrientation [ position ] = true ;
108108 lines . push ( getGridLine ( chart , scale , position , tickIndex ) ) ;
109109 }
110110 }
@@ -114,8 +114,8 @@ module.exports = function() {
114114 if ( scaleOptions . gridLines . offsetGridLines ) {
115115 position = Math . round ( ! scale . isHorizontal ( ) ? scale . bottom : scale . right ) ;
116116
117- if ( glHashByOrientantion [ position ] === undefined ) {
118- glHashByOrientantion [ position ] = true ;
117+ if ( glHashByOrientation [ position ] === undefined ) {
118+ glHashByOrientation [ position ] = true ;
119119 lines . push ( getGridLine ( chart , scale , position , undefined ) ) ;
120120 }
121121 }
0 commit comments