@ -113,20 +113,9 @@ More detail and specific examples can be found in the included HTML file.
} else if ( options . series . pie . tilt < 0 ) {
} else if ( options . series . pie . tilt < 0 ) {
options . series . pie . tilt = 0 ;
options . series . pie . tilt = 0 ;
}
}
// add processData hook to do transformations on the data
plot . hooks . processDatapoints . push ( processDatapoints ) ;
plot . hooks . drawOverlay . push ( drawOverlay ) ;
// draw hook
plot . hooks . draw . push ( draw ) ;
}
}
} ) ;
} ) ;
// bind hoverable events
plot . hooks . bindEvents . push ( function ( plot , eventHolder ) {
plot . hooks . bindEvents . push ( function ( plot , eventHolder ) {
var options = plot . getOptions ( ) ;
var options = plot . getOptions ( ) ;
if ( options . series . pie . show ) {
if ( options . series . pie . show ) {
@ -139,6 +128,27 @@ More detail and specific examples can be found in the included HTML file.
}
}
} ) ;
} ) ;
plot . hooks . processDatapoints . push ( function ( plot , series , data , datapoints ) {
var options = plot . getOptions ( ) ;
if ( options . series . pie . show ) {
processDatapoints ( plot , series , data , datapoints ) ;
}
} ) ;
plot . hooks . drawOverlay . push ( function ( plot , octx ) {
var options = plot . getOptions ( ) ;
if ( options . series . pie . show ) {
drawOverlay ( plot , octx ) ;
}
} ) ;
plot . hooks . draw . push ( function ( plot , newCtx ) {
var options = plot . getOptions ( ) ;
if ( options . series . pie . show ) {
draw ( plot , newCtx ) ;
}
} ) ;
// debugging function that prints out an object
// debugging function that prints out an object
function alertObject ( obj ) {
function alertObject ( obj ) {