nl_tokens: Radar specific functions .
pl_tokens: function drawAllDataPoints ( animationDecimal ) { var rotationDegree = ( 2 * Math . PI ) / data . datasets [ 0 ] . data . length ; ctx . save ( ) ; //translate to the centre of the canvas. ctx . translate ( width / 2 , height / 2 ) ; //We accept multiple data sets for radar charts, so show loop through each set for ( var i = 0 ; i < data . datasets . length ; i ++ ) { ctx . beginPath ( ) ; ctx . moveTo ( 0 , animationDecimal * ( - 1 * calculateOffset ( data . datasets [ i ] . data [ 0 ] , calculatedScale , scaleHop ) ) ) ; for ( var j = 1 ; j < data . datasets [ i ] . data . length ; j ++ ) { ctx . rotate ( rotationDegree ) ; ctx . lineTo ( 0 , animationDecimal * ( - 1 * calculateOffset ( <mask> . datasets [ i ] . data [ j ] , calculatedScale , scaleHop ) ) ) ; } ctx . closePath ( ) ; ctx . fillStyle = data . datasets [ i ] . fillColor ; ctx . strokeStyle = data . datasets [ i ] . strokeColor ; ctx . lineWidth = config . datasetStrokeWidth ; ctx . fill ( ) ; ctx . stroke ( ) ; if ( config . pointDot ) { ctx . fillStyle = data . datasets [ i ] . pointColor ; ctx . strokeStyle = data . datasets [ i ] . pointStrokeColor ; ctx . lineWidth = config . pointDotStrokeWidth ; for ( var k = 0 ; k < data . datasets [ i ] . data . length ; k ++ ) { ctx . rotate ( rotationDegree ) ; ctx . beginPath ( ) ; ctx . arc ( 0 , animationDecimal * ( - 1 * calculateOffset ( data . datasets [ i ] . data [ k ] , calculatedScale , scaleHop ) ) , config . pointDotRadius , 2 * Math . PI , false ) ; ctx . fill ( ) ; ctx . stroke ( ) ; } } ctx . rotate ( rotationDegree ) ; } ctx . restore ( ) ; }