Sign in to follow this  
dinhhung09138

funsion chart don't display under IE10 but display on IE10

Recommended Posts

Hi

 

My company by funsion chart TX from 2011. 

 

Now, I'm developing a dashboard, It display on Chrome, FireFox, Safary and IE10 but don't display under IE10.

 

I'm using Asp.net and code-behind

 

Here is my code:

 

 

string Color = (!_PrevYear ? "999999" : "4b9fdc");
        string retValue = "";
        string strXML = "";
        strXML +="<chart  bgColor='FFFFFF' numDivLines='0' canvasBorderThickness='0' ";
        strXML +="  showlabels='0' canvasMargin='0' placevaluesinside='1' showTooltip='1' ";
        strXML +="  captionPadding='0' lablePadding='0' canvasPadding='0'  valuePadding='0' ";
        strXML +="  showShadow='0' showBorder='0'  ";
        strXML += "  baseFont='Arial' baseFontSize='9' baseFontColor='ffffff' outCnvBaseFont='Arial' ";
        strXML +="  plotGradientColor='' plotBorderColor='ffffff' ";
        strXML +="  rotateValues='0' showyaxisvalues='0' ";
        strXML +="  chartLeftMargin='0' chartRightMargin='0' chartTopMargin='0' chartBottomMargin='0' ";
        strXML +="  yAxisNamePadding='0' xAxisNamePadding='0' ";
        if (dt == null || dt.Rows.Count == 0)
            return "<div style='text-align:center;padding-top:7px;'> No data available </div>";
        if (!_PrevYear)
        {
            strXML += " >";
            DataRow[] dr = dt.Select("IDS='" + IDS + "' AND YEAR=" + _Year + " AND MONTH=" + _Month);
            if (dr.Length > 0)
            {
                for (int i = 0; i < dr.Length; i++)
                {
                    if (ValueSelected == "avgtimeonsite")
                    {
                        strXML += "<set  value='" + dr[ValueSelected].ToString() + "' displayValue='" + dr["DISPLAYEDTIME"].ToString() + "' color='" + Color + "' ";
                        strXML += " toolText='Time on site (AVG){br}" + dr["DISPLAYEDTIME"].ToString() + " ' ";
                        strXML += " />";    
                    }
                    else
                    {
                        if (ValueSelected == "visits" || ValueSelected == "pageviews" || ValueSelected == "uniquepageviews")
                        {
                            strXML += "<set  value='" + dr[ValueSelected].ToString() + "' displayValue='" + string.Format("{0:#,##0}", int.Parse(dr[ValueSelected].ToString())) + "' color='" + Color + "' ";
                            strXML += " toolText='" + (ValueSelected == "visits" ? "Visits" : (ValueSelected == "pageviews" ? "Pageviews" : "Unique Pageviews")) + "{br}";
                            strXML += string.Format("{0:#,##0}", int.Parse(dr[ValueSelected].ToString())) + " ' ";
                            strXML += " />";    
                        }
                        else 
                        {
                            strXML += "<set  value='" + dr[ValueSelected].ToString() + "' displayValue='" + dr[ValueSelected].ToString() + @"' color='" + Color + "' ";
                            strXML += " toolText='" + (ValueSelected == "visitbouncerate" ? "Bounce Rate (%)" : "Pages / Visits") + "{br}";
                            strXML += dr[ValueSelected].ToString() + "' ";
                            strXML += " />";
                        }
                    }
                }
                strXML += "<styles>";
                strXML += "  <definition>";
                strXML += "    <style name='myToolTipFont' type='font' font='Arial' size='11' color='4b9fdc'/>";
                strXML += "    <style name='myValuesFont' type='Arial' size='10' color='4b9fdc'/>";// bold='1' bgColor='666666' borderColor='666666'
                strXML += "  </definition>";
                strXML += "  <application>";
                strXML += "     <apply toObject='ToolTip' styles='myToolTipFont' />";
                strXML += "     <apply toObject='DataValues' styles='myValuesFont' />";
                strXML += "   </application>";
                strXML += "</styles>";
                strXML +="</chart>";
               
                FusionCharts.SetRenderer("javascript");
                retValue = FusionCharts.RenderChart(GlobalBlue.Globals.ApplicationPath + "Charts/Bar2D.swf", "", strXML, idContent, "300", "40", false, false);
            }
            else
            {
                retValue = "<div style='text-align: center'>(No data to display)</div>";
            }
        }
ltr_displaychart.Text = retValue;
 
 
I want to know what problem? Can you help me?
 
awaiting your response.
 
regards
 
Error image
 
 

post-62118-0-77325000-1385434002_thumb.png

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
Sign in to follow this