@@ -176,10 +176,9 @@ proto.adjustLayout = function(ternaryLayout, graphSize) {
176176 xDomainCenter - xDomainFinal / 2 ,
177177 xDomainCenter + xDomainFinal / 2
178178 ] ,
179- _id : 'x' ,
180- _gd : _this . graphDiv
179+ _id : 'x'
181180 } ;
182- setConvert ( _this . xaxis ) ;
181+ setConvert ( _this . xaxis , _this . graphDiv . _fullLayout ) ;
183182 _this . xaxis . setScale ( ) ;
184183
185184 _this . yaxis = {
@@ -189,10 +188,9 @@ proto.adjustLayout = function(ternaryLayout, graphSize) {
189188 yDomainCenter - yDomainFinal / 2 ,
190189 yDomainCenter + yDomainFinal / 2
191190 ] ,
192- _id : 'y' ,
193- _gd : _this . graphDiv
191+ _id : 'y'
194192 } ;
195- setConvert ( _this . yaxis ) ;
193+ setConvert ( _this . yaxis , _this . graphDiv . _fullLayout ) ;
196194 _this . yaxis . setScale ( ) ;
197195
198196 // set up the modified axes for tick drawing
@@ -212,12 +210,12 @@ proto.adjustLayout = function(ternaryLayout, graphSize) {
212210 _axislayer : _this . layers . aaxis ,
213211 _gridlayer : _this . layers . agrid ,
214212 _pos : 0 , // _this.xaxis.domain[0] * graphSize.w,
215- _gd : _this . graphDiv ,
216213 _id : 'y' ,
217214 _length : w ,
218215 _gridpath : 'M0,0l' + h + ',-' + ( w / 2 )
219216 } ) ;
220- setConvert ( aaxis ) ;
217+ setConvert ( aaxis , _this . graphDiv . _fullLayout ) ;
218+ aaxis . setScale ( ) ;
221219
222220 // baxis goes across the bottom (backward). We can set it up as an x axis
223221 // without any enclosing transformation.
@@ -230,12 +228,12 @@ proto.adjustLayout = function(ternaryLayout, graphSize) {
230228 _gridlayer : _this . layers . bgrid ,
231229 _counteraxis : _this . aaxis ,
232230 _pos : 0 , // (1 - yDomain0) * graphSize.h,
233- _gd : _this . graphDiv ,
234231 _id : 'x' ,
235232 _length : w ,
236233 _gridpath : 'M0,0l-' + ( w / 2 ) + ',-' + h
237234 } ) ;
238- setConvert ( baxis ) ;
235+ setConvert ( baxis , _this . graphDiv . _fullLayout ) ;
236+ baxis . setScale ( ) ;
239237 aaxis . _counteraxis = baxis ;
240238
241239 // caxis goes down the right side. Set it up as a y axis, with
@@ -250,12 +248,12 @@ proto.adjustLayout = function(ternaryLayout, graphSize) {
250248 _gridlayer : _this . layers . cgrid ,
251249 _counteraxis : _this . baxis ,
252250 _pos : 0 , // _this.xaxis.domain[1] * graphSize.w,
253- _gd : _this . graphDiv ,
254251 _id : 'y' ,
255252 _length : w ,
256253 _gridpath : 'M0,0l-' + h + ',' + ( w / 2 )
257254 } ) ;
258- setConvert ( caxis ) ;
255+ setConvert ( caxis , _this . graphDiv . _fullLayout ) ;
256+ caxis . setScale ( ) ;
259257
260258 var triangleClip = 'M' + x0 + ',' + ( y0 + h ) + 'h' + w + 'l-' + ( w / 2 ) + ',-' + h + 'Z' ;
261259 _this . clipDef . select ( 'path' ) . attr ( 'd' , triangleClip ) ;
0 commit comments