@@ -230,8 +230,6 @@ proto.updateLayout = function(fullLayout, polarLayout) {
230
230
var yOffset2 = _this . yOffset2 = gs . t + gs . h * ( 1 - yDomain2 [ 1 ] ) ;
231
231
// circle radius in px
232
232
var radius = _this . radius = xLength2 / dxSectorBBox ;
233
- // 'inner' radius in px (when polar.hole is set)
234
- var innerRadius = _this . innerRadius = polarLayout . hole * radius ;
235
233
// circle center position in px
236
234
var cx = _this . cx = xOffset2 - radius * sectorBBox [ 0 ] ;
237
235
var cy = _this . cy = yOffset2 + radius * sectorBBox [ 3 ] ;
@@ -363,7 +361,6 @@ proto.updateRadialAxis = function(fullLayout, polarLayout) {
363
361
var gd = _this . gd ;
364
362
var layers = _this . layers ;
365
363
var radius = _this . radius ;
366
- var innerRadius = _this . innerRadius ;
367
364
var cx = _this . cx ;
368
365
var cy = _this . cy ;
369
366
var radialLayout = polarLayout . radialaxis ;
@@ -384,11 +381,6 @@ proto.updateRadialAxis = function(fullLayout, polarLayout) {
384
381
ax . tickangle = 180 ;
385
382
}
386
383
387
- // easier to set rotate angle with custom translate function
388
- var transFn = function ( d ) {
389
- return strTranslate ( ax . l2p ( d . x ) + innerRadius , 0 ) ;
390
- } ;
391
-
392
384
var transFn2 = function ( d ) {
393
385
return strTranslate ( ax . c2p ( d . x ) , - 2 ) ;
394
386
} ;
@@ -408,33 +400,27 @@ proto.updateRadialAxis = function(fullLayout, polarLayout) {
408
400
_this . radialTickLayout = newTickLayout ;
409
401
}
410
402
411
- var out = Axes . makeLabelFns ( ax , 0 ) ;
412
- var labelStandoff = out . labelStandoff ;
413
403
var labelFns = { } ;
414
404
415
- labelFns . xFn = function ( d ) {
405
+ labelFns . xFn = function ( ) {
416
406
return 0 ;
417
407
} ;
418
408
419
- labelFns . yFn = function ( d ) {
409
+ labelFns . yFn = function ( ) {
420
410
return 0 ;
421
411
} ;
422
412
423
- labelFns . anchorFn = function ( d ) {
413
+ labelFns . anchorFn = function ( ) {
424
414
return 'end' ;
425
415
} ;
426
416
427
- labelFns . heightFn = function ( d , a , h ) {
417
+ labelFns . heightFn = function ( ) {
428
418
return 0 ;
429
419
} ;
430
420
431
421
if ( hasRoomForIt ) {
432
422
ax . setScale ( ) ;
433
423
434
- var vals = Axes . calcTicks ( ax ) ;
435
- // var valsClipped = Axes.clipEnds(ax, vals);
436
- var tickSign = Axes . getTickSigns ( ax ) [ 2 ] ;
437
-
438
424
// circular grid lines
439
425
Axes . drawGrid ( gd , ax , {
440
426
vals : [ { x : 0.2 } , { x : 0.5 } , { x : 1.0 } , { x : 2.0 } , { x : 5.0 } ] ,
@@ -541,7 +527,6 @@ proto.updateAngularAxis = function(fullLayout, polarLayout) {
541
527
var gd = _this . gd ;
542
528
var layers = _this . layers ;
543
529
var radius = _this . radius ;
544
- var innerRadius = _this . innerRadius ;
545
530
var cx = _this . cx ;
546
531
var cy = _this . cy ;
547
532
var angularLayout = polarLayout . angularaxis ;
@@ -569,11 +554,6 @@ proto.updateAngularAxis = function(fullLayout, polarLayout) {
569
554
return _transFn ( t2g ( d ) ) ;
570
555
} ;
571
556
572
- var transFn2 = function ( d ) {
573
- var rad = t2g ( d ) ;
574
- return _transFn ( rad ) + strRotate ( - rad2deg ( rad ) ) ;
575
- } ;
576
-
577
557
var gridPathFn = function ( d ) {
578
558
var value = d . x ;
579
559
var radius = _this . radius / d . x ;
@@ -648,9 +628,6 @@ proto.updateAngularAxis = function(fullLayout, polarLayout) {
648
628
}
649
629
650
630
if ( ax . visible ) {
651
- var tickSign = ax . ticks === 'inside' ? - 1 : 1 ;
652
- var pad = ( ax . linewidth || 1 ) / 2 ;
653
-
654
631
Axes . drawGrid ( gd , ax , {
655
632
// vals: vals,
656
633
vals : [ - 5.0 , - 2.0 , - 1.0 , - 0.5 , - 0.2 , 0.2 , 0.5 , 1.0 , 2.0 , 5.0 ] . map ( function ( v ) {
0 commit comments