$(window).load(function(){FusionCharts.ready(function () {
    var conversionChart = new FusionCharts({
        type: 'funnel',
        renderAt: 'chart-container',
        width: '500',
        height: '400',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "caption": "Website visits",
                "subcaption": "Purchase - Conversion analysis for last year",
                "decimals": "1",
                "is2D": "1",
                "labelDistance": "15",
                "plotTooltext": "Success : $percentOfPrevValue",
                "showPercentValues": "1",
                "showPlotBorder" : "1",
                "PlotBorderAlpha" :"0",
                
                //Hover effect
                "showHoverEffect" : "1",
                "plotFillHoverColor" : "#cccccc",
                "plotFillHoverAlpha" : "60",
                
                "plotBorderHoverColor" : "#333333",
                "plotBorderHoverAlpha" : "60",
                "plotBorderHoverThickness" : "2",                
                
                "theme" : "fint"
            },
            "data": [
                {
                    "label": "Unique Website Visits",
                    "value": "1460000"
                }, 
                {
                    "label": "Programme Details Section Visits",
                    "value": "930000"
                }, 
                {
                    "label": "Attempts to Register",
                    "value": "540000"
                }, 
                {
                    "label": "Successful Registrations",
                    "value": "210000"
                }, 
                {
                    "label": "Logged In",
                    "value": "190000"
                }, 
                {
                    "label": "Purchased on Introductory Offers",
                    "value": "120000"
                }
            ]
        }
    });
    
    conversionChart.render();
});});