Itsmejag

Getting errors in fusion chart js files IE7 & IE8 browser console

Recommended Posts

Hi, 

 

 

 

We have licence for FusionCharts XT (v3.2.2) SR 5.  I had put  FusionCharts.HC.jsFusionCharts.HC.Charts.js andjquery.min.js files  in a folder fusioncahrts and started using fusion charts java script mode. No swf files or no other files in the folder. 

 

 

Its working fine in all the browsers but not in IE7 & 8. It supposed to display charts using flash/some other manner as these 7&8 don't have HTML5 canvas element support. While displaying the charts in these browsers, it displaying errors in browser's console. Those script errors are from above fusion chart script files. I can't put all errors in browser console errors as it is a secured site. 

 

SCRIPT16389: Failed 

FusionCharts.HC.js, line 224 character 348

 

 

Same errors are coming from jquery.min.js file too.. 

 

Because of these errors , user can not proceed further. by the way, we have around 10 pie charts to display in a single screen. 

 

Is it a memory leak issue ? . or chart configuration values issue ? Please help. 

 

 

Share this post


Link to post
Share on other sites

Hi Sumedh, 

 

 

Got latest update v3.3.1 - Service Release 2, I'll check the issue and let you know, 

 

I have a Quick doubt, like 3.2.2 version latest version FusionCharts.js and jquery.min.js files are also showing lot of missing semicolon errors in eclipse IDE view. ? Are they causing errors in browser console ? 

 

Do need to place any other files in fusioncahrts folders apart from FusionCharts.js, FusionCharts.HC.js,  FusionCharts.HC.Charts.js andjquery.min.js files ? 

 

Thanks, 

 

Jag 

Share this post


Link to post
Share on other sites

Hi Sumedh, 

 

 What I have observed is, The latest updated fusion chart is not displaying popup properly. This is happening only in IE7 and IE8. 

 

The width of pop up is correct but the height is very less than the actual display. In a result it showing a white space as pop up in IE7 and IE8. Its displying as expected in all other browsers.

 

please find the sample code . pie chart using java script

 

 

 

function pieChart ("HTML <div>idvalue", parameter) { 
    YUE.onDOMReady(function() {
        var chartItem = new FusionCharts("Pie2D", "randomNumberhere", "100%", "100%");
        var chartData = [];
        var dataElements = parameter.elements;
        for ( var i = 0, len = dataElements.length; i < len; i++) {
            var element = dataElements;
            if (typeof (element.value) != "undefined"
                    && typeof (element.color != "undefined")) {        
                chartData.push({
                    "value" : element.value,
                    "color" : String(element.color)
                });
            }
        }
        dataArrLen = chartData.length;
        chartItem.setJSONData({
            "chart" : {                                                  
                "showPercentValues" : 0,
                "showLabels" : 0,
                "showBorder" : 0,
                "showValues" : 0,
                "bgColor" : "FFFFFF",
                "showPlotBorder" : 1,
                "plotBorderColor" : "FFFFFF",
                "plotBorderThickness" : "1",
                "enablesmartlabels" : 0,
                "numberPrefix" : "%",
                "chartRightMargin" : "-17",
                "chartTopMargin" : "-17",
                "chartBottomMargin" : "-17",
                "chartLeftMargin" : "-17",
                "showShadow" : "1",
                "startingAngle" : 90,
                "enableRotation" : 0,
                "animation" : 0,
                "slicingDistance" : "0"
            },
            "data" : chartData
        });
        if (dataArrLen == 1) {                                            
            chartItem.setChartAttribute("plotBorderThickness", "0");
        }
        chartItem.render("HTML <div>idvalue"); 
    });
    
};

 

 

I am using YUI 2.8.2 version. 

 

Thanks,

 

 

Jag

Edited by Itsmejag

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now