@@ -240,14 +240,14 @@ proto.updateLayout = function(fullLayout, polarLayout) {
240
240
var cyy = _this . cyy = cy - yOffset2 ;
241
241
242
242
_this . radialAxis = _this . mockAxis ( fullLayout , polarLayout , radialLayout , {
243
- _id : 'realaxis' ,
243
+ _id : 'realaxis' ,
244
244
side : {
245
245
counterclockwise : 'top' ,
246
246
clockwise : 'bottom'
247
247
} [ radialLayout . side ] ,
248
248
// keep track of real side
249
249
_realSide : radialLayout . side ,
250
- domain : [ 0 , 100 ]
250
+ domain : [ 0 , 100 ]
251
251
} ) ;
252
252
253
253
// _this.radialAxis = _this.mockAxis(fullLayout, polarLayout, radialLayout, {
@@ -395,7 +395,7 @@ proto.updateRadialAxis = function(fullLayout, polarLayout) {
395
395
396
396
// set special grid path function
397
397
var gridPathFn = function ( d ) {
398
- var value = d . x
398
+ var value = d . x ;
399
399
400
400
var gridRadius = 0.5 * ( _this . radius - ax . c2p ( value ) ) ;
401
401
var gridCenter = gridRadius + ax . c2p ( value ) ;
@@ -413,19 +413,19 @@ proto.updateRadialAxis = function(fullLayout, polarLayout) {
413
413
var labelFns = { } ;
414
414
415
415
labelFns . xFn = function ( d ) {
416
- return 0 ;
416
+ return 0 ;
417
417
} ;
418
418
419
419
labelFns . yFn = function ( d ) {
420
- return 0 ;
420
+ return 0 ;
421
421
} ;
422
422
423
423
labelFns . anchorFn = function ( d ) {
424
- return 'end' ;
424
+ return 'end' ;
425
425
} ;
426
426
427
427
labelFns . heightFn = function ( d , a , h ) {
428
- return 0 ;
428
+ return 0 ;
429
429
} ;
430
430
431
431
if ( hasRoomForIt ) {
@@ -445,14 +445,14 @@ proto.updateRadialAxis = function(fullLayout, polarLayout) {
445
445
} ) ;
446
446
447
447
Axes . drawLabels ( gd , ax , {
448
- vals : [ 0.2 , 0.5 , 1.0 , 2.0 , 5.0 ] . map ( function ( d ) {
449
- return {
450
- x : d ,
451
- text : d ,
452
- font : '"Open Sans", verdana, arial, sans-serif' ,
453
- fontColor : '#444' ,
454
- fontSize : 12 ,
455
- } ;
448
+ vals : [ 0.2 , 0.5 , 1.0 , 2.0 , 5.0 ] . map ( function ( d ) {
449
+ return {
450
+ x : d ,
451
+ text : d ,
452
+ font : '"Open Sans", verdana, arial, sans-serif' ,
453
+ fontColor : '#444' ,
454
+ fontSize : 12 ,
455
+ } ;
456
456
} ) ,
457
457
layer : layers [ 'radial-axis' ] ,
458
458
transFn : transFn2 ,
@@ -494,7 +494,7 @@ proto.updateRadialAxis = function(fullLayout, polarLayout) {
494
494
)
495
495
. attr ( 'stroke-width' , radialLayout . linewidth )
496
496
. call ( Color . stroke , radialLayout . linecolor ) ;
497
- }
497
+ } ;
498
498
499
499
proto . updateRadialAxisTitle = function ( fullLayout , polarLayout , _angle ) {
500
500
var _this = this ;
@@ -653,10 +653,10 @@ proto.updateAngularAxis = function(fullLayout, polarLayout) {
653
653
654
654
Axes . drawGrid ( gd , ax , {
655
655
// vals: vals,
656
- vals : [ - 5.0 , - 2.0 , - 1.0 , - 0.5 , - 0.2 , 0.2 , 0.5 , 1.0 , 2.0 , 5.0 ] . map ( function ( v ) {
657
- return {
658
- x : v ,
659
- } ;
656
+ vals : [ - 5.0 , - 2.0 , - 1.0 , - 0.5 , - 0.2 , 0.2 , 0.5 , 1.0 , 2.0 , 5.0 ] . map ( function ( v ) {
657
+ return {
658
+ x : v ,
659
+ } ;
660
660
} ) ,
661
661
layer : layers [ 'angular-grid' ] ,
662
662
path : gridPathFn ,
@@ -665,17 +665,17 @@ proto.updateAngularAxis = function(fullLayout, polarLayout) {
665
665
} ) ;
666
666
667
667
Axes . drawLabels ( gd , ax , {
668
- vals : [ - 5.0 , - 2.0 , - 1.0 , - 0.5 , - 0.2 , 0.0 , 0.2 , 0.5 , 1.0 , 2.0 , 5.0 , Infinity ] . map ( function ( v ) {
669
- var radius = _this . radius / v ;
670
- var theta = 2.0 * Math . atan2 ( radius , _this . radius ) ;
671
-
672
- return {
673
- x : theta * 360.0 / ( 2 * Math . PI ) ,
674
- text : v === Infinity ? '∞' : ( ( v === 0.0 ? '0 + 0' : v ) + 'j' ) ,
675
- font : '"Open Sans", verdana, arial, sans-serif' ,
676
- fontColor : '#444' ,
677
- fontSize : v === Infinity ? 16 : 12 ,
678
- } ;
668
+ vals : [ - 5.0 , - 2.0 , - 1.0 , - 0.5 , - 0.2 , 0.0 , 0.2 , 0.5 , 1.0 , 2.0 , 5.0 , Infinity ] . map ( function ( v ) {
669
+ var radius = _this . radius / v ;
670
+ var theta = 2.0 * Math . atan2 ( radius , _this . radius ) ;
671
+
672
+ return {
673
+ x : theta * 360.0 / ( 2 * Math . PI ) ,
674
+ text : v === Infinity ? '∞' : ( ( v === 0.0 ? '0 + 0' : v ) + 'j' ) ,
675
+ font : '"Open Sans", verdana, arial, sans-serif' ,
676
+ fontColor : '#444' ,
677
+ fontSize : v === Infinity ? 16 : 12 ,
678
+ } ;
679
679
} ) ,
680
680
layer : layers [ 'angular-axis' ] ,
681
681
repositionOnUpdate : true ,
0 commit comments