@@ -176,10 +176,9 @@ proto.adjustLayout = function(ternaryLayout, graphSize) {
176
176
xDomainCenter - xDomainFinal / 2 ,
177
177
xDomainCenter + xDomainFinal / 2
178
178
] ,
179
- _id : 'x' ,
180
- _gd : _this . graphDiv
179
+ _id : 'x'
181
180
} ;
182
- setConvert ( _this . xaxis ) ;
181
+ setConvert ( _this . xaxis , _this . graphDiv . _fullLayout ) ;
183
182
_this . xaxis . setScale ( ) ;
184
183
185
184
_this . yaxis = {
@@ -189,10 +188,9 @@ proto.adjustLayout = function(ternaryLayout, graphSize) {
189
188
yDomainCenter - yDomainFinal / 2 ,
190
189
yDomainCenter + yDomainFinal / 2
191
190
] ,
192
- _id : 'y' ,
193
- _gd : _this . graphDiv
191
+ _id : 'y'
194
192
} ;
195
- setConvert ( _this . yaxis ) ;
193
+ setConvert ( _this . yaxis , _this . graphDiv . _fullLayout ) ;
196
194
_this . yaxis . setScale ( ) ;
197
195
198
196
// set up the modified axes for tick drawing
@@ -212,12 +210,12 @@ proto.adjustLayout = function(ternaryLayout, graphSize) {
212
210
_axislayer : _this . layers . aaxis ,
213
211
_gridlayer : _this . layers . agrid ,
214
212
_pos : 0 , // _this.xaxis.domain[0] * graphSize.w,
215
- _gd : _this . graphDiv ,
216
213
_id : 'y' ,
217
214
_length : w ,
218
215
_gridpath : 'M0,0l' + h + ',-' + ( w / 2 )
219
216
} ) ;
220
- setConvert ( aaxis ) ;
217
+ setConvert ( aaxis , _this . graphDiv . _fullLayout ) ;
218
+ aaxis . setScale ( ) ;
221
219
222
220
// baxis goes across the bottom (backward). We can set it up as an x axis
223
221
// without any enclosing transformation.
@@ -230,12 +228,12 @@ proto.adjustLayout = function(ternaryLayout, graphSize) {
230
228
_gridlayer : _this . layers . bgrid ,
231
229
_counteraxis : _this . aaxis ,
232
230
_pos : 0 , // (1 - yDomain0) * graphSize.h,
233
- _gd : _this . graphDiv ,
234
231
_id : 'x' ,
235
232
_length : w ,
236
233
_gridpath : 'M0,0l-' + ( w / 2 ) + ',-' + h
237
234
} ) ;
238
- setConvert ( baxis ) ;
235
+ setConvert ( baxis , _this . graphDiv . _fullLayout ) ;
236
+ baxis . setScale ( ) ;
239
237
aaxis . _counteraxis = baxis ;
240
238
241
239
// caxis goes down the right side. Set it up as a y axis, with
@@ -250,12 +248,12 @@ proto.adjustLayout = function(ternaryLayout, graphSize) {
250
248
_gridlayer : _this . layers . cgrid ,
251
249
_counteraxis : _this . baxis ,
252
250
_pos : 0 , // _this.xaxis.domain[1] * graphSize.w,
253
- _gd : _this . graphDiv ,
254
251
_id : 'y' ,
255
252
_length : w ,
256
253
_gridpath : 'M0,0l-' + h + ',' + ( w / 2 )
257
254
} ) ;
258
- setConvert ( caxis ) ;
255
+ setConvert ( caxis , _this . graphDiv . _fullLayout ) ;
256
+ caxis . setScale ( ) ;
259
257
260
258
var triangleClip = 'M' + x0 + ',' + ( y0 + h ) + 'h' + w + 'l-' + ( w / 2 ) + ',-' + h + 'Z' ;
261
259
_this . clipDef . select ( 'path' ) . attr ( 'd' , triangleClip ) ;
0 commit comments