@ -997,7 +997,7 @@
if ( isGaugeType ( d . data ) ) {
if ( isGaugeType ( d . data ) ) {
var sA = d . startAngle , eA = d . endAngle ;
var sA = d . startAngle , eA = d . endAngle ;
var gMin = _ _gauge _min , gMax = _ _gauge _max ,
var gMin = _ _gauge _min , gMax = _ _gauge _max ,
gF = Math . abs ( gMin ) + gMax , fA = Math . abs ( sA ) + eA ,
gF = Math . abs ( gMin ) + gMax ,
aTic = ( Math . PI ) / gF ;
aTic = ( Math . PI ) / gF ;
d . startAngle = ( - 1 * ( Math . PI / 2 ) ) + ( aTic * Math . abs ( gMin ) ) ;
d . startAngle = ( - 1 * ( Math . PI / 2 ) ) + ( aTic * Math . abs ( gMin ) ) ;
d . endAngle = d . startAngle + ( aTic * ( ( d . value > gMax ) ? gMax : d . value ) ) ;
d . endAngle = d . startAngle + ( aTic * ( ( d . value > gMax ) ? gMax : d . value ) ) ;
@ -2446,8 +2446,8 @@
if ( _ _axis _rotated ) {
if ( _ _axis _rotated ) {
area = d3 . svg . area ( )
area = d3 . svg . area ( )
. x0 ( function ( d , i ) { return yScaleGetter ( d . id ) ( 0 ) ; } )
. x0 ( function ( d ) { return yScaleGetter ( d . id ) ( 0 ) ; } )
. x1 ( function ( d , i ) { return yScaleGetter ( d . id ) ( d . value ) ; } )
. x1 ( function ( d ) { return yScaleGetter ( d . id ) ( d . value ) ; } )
. y ( xx ) ;
. y ( xx ) ;
} else {
} else {
area = d3 . svg . area ( )
area = d3 . svg . area ( )
@ -2456,7 +2456,7 @@
. y1 ( function ( d , i ) { if ( _ _data _groups . length > 0 ) { var point = getPoint ( d , i ) ; return point [ 1 ] [ 1 ] ; } return yScaleGetter ( d . id ) ( d . value ) ; } ) ;
. y1 ( function ( d , i ) { if ( _ _data _groups . length > 0 ) { var point = getPoint ( d , i ) ; return point [ 1 ] [ 1 ] ; } return yScaleGetter ( d . id ) ( d . value ) ; } ) ;
}
}
return function ( d , i ) {
return function ( d ) {
var data = filterRemoveNull ( d . values ) , x0 , y0 ;
var data = filterRemoveNull ( d . values ) , x0 , y0 ;
if ( hasType ( [ d ] , 'area' ) || hasType ( [ d ] , 'area-spline' ) ) {
if ( hasType ( [ d ] , 'area' ) || hasType ( [ d ] , 'area-spline' ) ) {
@ -3798,13 +3798,17 @@
} ;
} ;
}
}
* /
* /
if ( isNaN ( this . _current . endAngle ) ) this . _current . endAngle = this . _current . startAngle ;
if ( isNaN ( this . _current . endAngle ) ) {
this . _current . endAngle = this . _current . startAngle ;
}
interpolate = d3 . interpolate ( this . _current , updated ) ;
interpolate = d3 . interpolate ( this . _current , updated ) ;
this . _current = interpolate ( 0 ) ;
this . _current = interpolate ( 0 ) ;
return function ( t ) { return getArc ( interpolate ( t ) , true ) ; } ;
return function ( t ) { return getArc ( interpolate ( t ) , true ) ; } ;
} )
} )
. attr ( "transform" , withTransform ? "scale(1)" : "" )
. attr ( "transform" , withTransform ? "scale(1)" : "" )
. style ( "fill" , function ( d ) { return ( _ _gauge _style === 'arc' && _ _color _values ) ? levelColor ( d . data . values [ 0 ] . value ) : color ( d . data . id ) ; } ) // Where gauge reading color would receive customization.//color(d.data); })
. style ( "fill" , function ( d ) {
return ( _ _gauge _style === 'arc' && _ _color _values ) ? levelColor ( d . data . values [ 0 ] . value ) : color ( d . data . id ) ;
} ) // Where gauge reading color would receive customization.
. style ( "opacity" , ( _ _color _opacity ) ? _ _color _opacity : 1 )
. style ( "opacity" , ( _ _color _opacity ) ? _ _color _opacity : 1 )
. call ( endall , function ( ) {
. call ( endall , function ( ) {
transiting = false ;
transiting = false ;
@ -5049,7 +5053,7 @@
}
}
function generateTicks ( scale ) {
function generateTicks ( scale ) {
var i , domain , ticks = [ ] ;
var i , domain , ticks = [ ] ;
if ( scale . ticks && tickArguments != undefined ) {
if ( scale . ticks && tickArguments !== undefined ) {
return scale . ticks . apply ( scale , tickArguments ) ;
return scale . ticks . apply ( scale , tickArguments ) ;
}
}
domain = scale . domain ( ) ;
domain = scale . domain ( ) ;