@@ -78,7 +78,7 @@ module.exports = function plot(gd, cdModule, transitionOpts, makeOnCompleteCallb
78
78
var hasGauge = trace . mode . indexOf ( 'gauge' ) !== - 1 ;
79
79
80
80
// circular gauge
81
- var isCircular = hasGauge && trace . gauge . shape === 'circular ' ;
81
+ var isAngular = hasGauge && trace . gauge . shape === 'angular ' ;
82
82
var theta = Math . PI / 2 ;
83
83
var radius = Math . min ( size . w / 2 , size . h * 0.75 ) ;
84
84
var innerRadius = cn . innerRadius * radius ;
@@ -119,7 +119,7 @@ module.exports = function plot(gd, cdModule, transitionOpts, makeOnCompleteCallb
119
119
}
120
120
labelFontSize = 0.35 * mainFontSize ;
121
121
} else {
122
- if ( isCircular ) {
122
+ if ( isAngular ) {
123
123
bignumberVerticalMargin = size . t + size . h ;
124
124
if ( ! isWide ) bignumberVerticalMargin -= ( size . h - radius ) / 2 ;
125
125
// TODO: check formatted size of the number
@@ -156,7 +156,7 @@ module.exports = function plot(gd, cdModule, transitionOpts, makeOnCompleteCallb
156
156
x : bignumberX ,
157
157
y : bignumberVerticalMargin ,
158
158
'text-anchor' : 'middle' ,
159
- 'alignment-baseline' : isCircular ? 'bottom' : 'central'
159
+ 'alignment-baseline' : isAngular ? 'bottom' : 'central'
160
160
} )
161
161
. call ( Drawing . font , trace . font )
162
162
. style ( 'font-size' , mainFontSize ) ;
@@ -211,7 +211,7 @@ module.exports = function plot(gd, cdModule, transitionOpts, makeOnCompleteCallb
211
211
name . exit ( ) . remove ( ) ;
212
212
213
213
// Draw circular gauge
214
- data = cd . filter ( function ( ) { return isCircular ; } ) ;
214
+ data = cd . filter ( function ( ) { return isAngular ; } ) ;
215
215
var gauge = d3 . select ( this ) . selectAll ( 'g.gauge' ) . data ( data ) ;
216
216
gauge . enter ( ) . append ( 'g' ) . classed ( 'gauge' , true ) ;
217
217
gauge . attr ( 'transform' , 'translate(' + centerX + ',' + bignumberVerticalMargin + ')' ) ;
0 commit comments