js/highcharts-master/samples/highcharts/members/renderer-path-on-chart/demo.js
/**
* Function to check if the drawing of the compassrose exists, if so - it updates the path, if not, it draws it.
*/
Function to check if the drawing of the compassrose exists, if so - it updates the path, if not, it draws it.
Function to check if the drawing of the compassrose exists if so - it updates the path if not it draws it .
function onDraw() {
    var path = getPath(this.chartWidth, this.chartHeight);
    if (this.compassrose) {
        this.compassrose.animate({
            d: path
        });
    } else {
        this.compassrose = this.renderer.path(path)
            .attr({
                fill: '#666666'
            })
            .add();
    }
}
function onDraw ( ) { var path = getPath ( this . chartWidth , this . chartHeight ) ; if ( this . compassrose ) { this . compassrose . animate ( { d : path } ) ; } else { this . compassrose = this . renderer . path ( path ) . attr ( { fill : '#666666' } ) . add ( ) ; } }
Function to check if the drawing of the compassrose exists, if so - it updates the path, if not, it draws it.
Function to check if the drawing of the compassrose exists if so - it updates the path if not it draws it .