@@ -127,16 +127,23 @@ define([
127127
128128 scales : {
129129 yAxes : [ {
130+ display : this . scaleShow ,
130131 //If stacked is set to true, the Y-axis needs to be stacked for it to work
131132 stacked : this . isStacked ,
132133 scaleLabel : {
133134 display : ( this . yLabel !== "" ) ? true : false ,
134135 labelString : ( this . yLabel !== "" ) ? this . yLabel : "" ,
135136 fontFamily : this . _font
136137 } ,
138+ gridLines : {
139+ display : this . scaleShowHorizontalLines ,
140+ color : this . scaleGridLineColor ,
141+ lineWidth : this . scaleLineWidth
142+ } ,
137143 ticks : {
138144 fontFamily : this . _font ,
139145 beginAtZero : this . scaleBeginAtZero ,
146+ display : this . scaleShowLabels ,
140147 callback : lang . hitch ( this , function ( value ) {
141148 var round = parseInt ( this . roundY ) ;
142149 if ( ! isNaN ( round ) && round >= 0 ) {
@@ -147,14 +154,21 @@ define([
147154 }
148155 } ] ,
149156 xAxes : [ {
157+ display : this . scaleShow ,
150158 scaleLabel : {
151159 display : ( this . xLabel !== "" ) ? true : false ,
152160 labelString : ( this . xLabel !== "" ) ? this . xLabel : "" ,
153161 fontFamily : this . _font
154162 } ,
163+ gridLines : {
164+ display : this . scaleShowVerticalLines ,
165+ color : this . scaleGridLineColor ,
166+ lineWidth : this . scaleLineWidth
167+ } ,
155168 type : "category" ,
156169 id : "x-axis-0" ,
157170 ticks : {
171+ display : this . scaleShowLabelsBottom ,
158172 fontFamily : this . _font ,
159173 maxTicksLimit : this . maxTickSize > 0 ? this . maxTickSize : null
160174 }
@@ -171,24 +185,6 @@ define([
171185 }
172186 } ,
173187
174- //Boolean - Whether to show labels on the scale
175- scaleShowLabels : this . scaleShowLabels ,
176-
177- ///Boolean - Whether grid lines are shown across the chart
178- scaleShowGridLines : this . scaleShowGridLines ,
179-
180- //String - Colour of the grid lines
181- scaleGridLineColor : this . scaleGridLineColor ,
182-
183- //Number - Width of the grid lines
184- scaleGridLineWidth : this . scaleGridLineWidth ,
185-
186- //Boolean - Whether to show horizontal lines (except X axis)
187- scaleShowHorizontalLines : this . scaleShowHorizontalLines ,
188-
189- //Boolean - Whether to show vertical lines (except Y axis)
190- scaleShowVerticalLines : this . scaleShowVerticalLines ,
191-
192188 //Boolean - Whether or not to render as a stacked chart
193189 stacked : this . isStacked ,
194190
0 commit comments