Da.UI.Guy

Javascript Error In Ie8

Recommended Posts

Everything looks like it's working fine in alll modern browsers except when running in IE8.

 

 

Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)

Timestamp: Wed, 2 May 2012 17:49:56 UTC

 

 

Message: 'attributes' is null or not an object

Line: 135

Char: 353

Code: 0

 

 

 

Any idea what is causing this or how to work around it? This is preventing the charts from rendering.

 

Thanks.

Edited by EcoFactor

Share this post


Link to post
Share on other sites

we tracked it down to a bug in the fusionCharts.js code. Please pass this along to your development team.

this is in in the sr3 release.

 

 

The changes start on line 2045 basically in this block of code:

[/size][/font][/color]

[font="Calibri, sans-serif"][color="#222222"][size=4]                         try {[/size][/color][/font]
[font="Calibri, sans-serif"][color="#222222"][size=4]                            if (window.DOMParser) f = (new window.DOMParser).parseFromString(c, "text/xml");[/size][/color][/font]
[font="Calibri, sans-serif"][color="#222222"][size=4]                            else if (document.body && a.core.options.allowIESafeXMLParsing) {[/size][/color][/font]
[font="Calibri, sans-serif"][color="#222222"][size=4]                                var k = document.createElement("xml");[/size][/color][/font]
[font="Calibri, sans-serif"][color="#222222"][size=4]                                k.innerHTML = c;[/size][/color][/font]
[font="Calibri, sans-serif"][color="#222222"][size=4]                                document.body.appendChild(k);[/size][/color][/font]
[font="Calibri, sans-serif"][color="#222222"][size=4]                                f = k.XMLDocument;[/size][/color][/font]
[font="Calibri, sans-serif"][color="#222222"][size=4]                                document.body.removeChild(k)[/size][/color][/font]
[font="Calibri, sans-serif"][color="#222222"][size=4]                            } else f = new ActiveXObject("Microsoft.XMLDOM"), f.async = "false", f.loadXML(c);[/size][/color][/font]
[font="Calibri, sans-serif"][color="#222222"][size=4]                            if (!f || !f.childNodes || !(f.childNodes.length === 1 && (h = f.childNodes[0]) && h.nodeName && (g = h.nodeName.toLowerCase()) && (g === "chart" || g === "map" || g === "graph"))) return e.errorObject = new TypeError("xml2json.parse()"), d[/size][/color][/font]
[font="Calibri, sans-serif"][color="#222222"][size=4]                        } catch (r) {[/size][/color][/font]
[font="Calibri, sans-serif"][color="#222222"][size=4]                            e.errorObject = r[/size][/color][/font]
[font="Calibri, sans-serif"][color="#222222"][size=4]                        }[/size][/color][/font]
[font="Calibri, sans-serif"][color="#222222"][size=4]                        d[g] = b.attr(h.attributes);[/size][/color][/font]
[color="#222222"][font="Calibri, sans-serif"][size="4"]

the createElement method call document.createElement("xml"); throws an error "wrong number of arguments or invalid property assignment"so it jumps to the catch() block, but that means it skips code which verifies that f exists and uses f to populate hit also means it skips that final else caseI verified that using the ActiveX approach will correctly populate f so that h can be populated.so I restructured the code to use the ActiveX approach in the catch block, then moved that error checking immediately outside of the try/catch block

 

 

 

 

Hi,

 

Can you please share the XML data to test from our end ?

Edited by Da.UI.Guy

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

We would need the sample code to test from our end.

 

Also, please let us know the testing environment to replicate the issue as we are unable to replicate the issue.

 

Awaiting your response.

Share this post


Link to post
Share on other sites

you just need the json that we generate?

 

The testing environment is in the javascript error above.

IE8 (base version) , windows xp sp1 - we had to install the windows xp mode and virtual machine for this in windows 7.

 

we integrated the fix and the problem goes away in IE8.

 

We are using MSStackedColumn2DLineDY.swf

 

json:

{
  "chart":{
     "isHTML":"1",
     "outCnvBaseFontSize":"9",
     "formatNumber":"1",
     "formatNumberScale":"0",
     "thousandSeparator":",",
     "showplotborder":"0",
     "plotBorderThickness":"0",
     "disable-pyAxisMinValue":"0",
     "disable-syAxisMinValue":"-10",
     "disable-syAxisMaxValue":"110",
     "disable-numDivLines":"10",
     "plotSpacepercent":"25",
     "bgAlpha":"0",
     "showBorder":"0",
     "canvasBorderAlpha":"0",
     "subcaption":"",
     "caption":"",
     "pyaxisname":"",
     "syaxisname":"",
     "decimals":"0",
     "setadaptivesymin":"-40",
     "plotGradientColor":"",
     "xaxisname":"",
     "palette":"1",
     "labelstep":"1",
     "labelDisplay":"wrap",
     "anchorRadius":"3",
     "toolTipBorderColor":"F26900",
     "toolTipBgColor":"fed75d",
     "legendIconScale":"1.5",
     "legendNumColumns":"4"
  },
  "categories":[
     {
    	"font":"Arial",
    	"fontsize":"12",
    	"fontcolor":"222222",
    	"category":[
           {
          	"label":"12{br}AM"
           },
           {
          	"label":"1{br}AM"
           },
           {
          	"label":"2{br}AM"
           },
           {
          	"label":"3{br}AM"
           },
           {
          	"label":"4{br}AM"
           },
           {
          	"label":"5{br}AM"
           },
           {
          	"label":"6{br}AM"
           },
           {
          	"label":"7{br}AM"
           },
           {
          	"label":"8{br}AM"
           },
           {
          	"label":null
           },
           {
          	"label":null
           },
           {
          	"label":null
           },
           {
          	"label":null
           },
           {
          	"label":null
           },
           {
          	"label":null
           },
           {
          	"label":null
           },
           {
          	"label":null
           },
           {
          	"label":null
           },
           {
          	"label":null
           },
           {
          	"label":null
           },
           {
          	"label":null
           },
           {
          	"label":null
           },
           {
          	"label":null
           },
           {
          	"label":null
           }
    	]
     }
  ],
  "styles":{
     "definition":[
    	{
           "name":"myLegendFont",
           "type":"font",
           "size":"11",
           "color":"CB6241",
           "bold":"1",
           "underline":"1",
           "padding":"40"
    	}
     ],
     "application":[
    	{
           "toobject":"Legend",
           "styles":"myLegendFont"
    	}
     ]
  },
  "dataset":[
     {
    	"dataset":[
           {
          	"seriesname":"Total Usage",
          	"color":"#91B93E",
          	"showvalues":"0",
          	"data":[
                 {
                	"value":"0",
                	"toolText":"<strong>12 am - 1 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
                	"value":"0",
                	"toolText":"<strong>1 am - 2 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
                	"value":"0",
                	"toolText":"<strong>2 am - 3 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
                	"value":"0",
                	"toolText":"<strong>3 am - 4 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
                	"value":"0",
                	"toolText":"<strong>4 am - 5 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
                	"value":"0",
                	"toolText":"<strong>5 am - 6 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
                	"value":"0",
                	"toolText":"<strong>6 am - 7 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
                	"value":"0",
                	"toolText":"<strong>7 am - 8 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
                	"value":"0",
                	"toolText":"<strong>8 am - 9 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 }
          	]
           },
           {
          	"seriesname":"? - Low Connectivity",
          	"useRoundEdges":"0",
          	"color":"222222",
          	"alpha":"0",
          	"showvalues":"1",
          	"showPlotBorder":"0",
          	"plotBorderThickness":"5",
          	"plotBorderColor":"ff0000",
          	"plotBorderAlpha":"0",
          	"plotBorderDashed":"1",
          	"plotBorderDashLen":"5",
          	"plotBorderDashGap":"5",
          	"valuePosition":"below",
          	"data":[
                 {
                	"value":null,
                	"displayValue":null
                 },
                 {
                	"value":null,
                	"displayValue":null
                 },
                 {
                	"value":null,
                	"displayValue":null
                 },
                 {
                	"value":null,
                	"displayValue":null
                 },
                 {
                	"value":null,
                	"displayValue":null
                 },
                 {
                	"value":null,
                	"displayValue":null
                 },
                 {
                	"value":null,
                	"displayValue":null
                 },
                 {
                	"value":null,
                	"displayValue":null
                 },
                 {
                	"value":null,
                	"displayValue":null
                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 }
          	]
           }
    	]
     },
     {
    	"dataset":[
           {
          	"seriesname":"Homes in your area",
          	"color":"dedede",
          	"showvalues":"0",
          	"data":[
                 {
                	"value":"240",
                	"toolText":"<strong>12 am - 1 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>240 min</strong>"
                 },
                 {
                	"value":"200",
                	"toolText":"<strong>1 am - 2 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>200 min</strong>"
                 },
                 {
                	"value":"154",
                	"toolText":"<strong>2 am - 3 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>154 min</strong>"
                 },
                 {
                	"value":"178",
                	"toolText":"<strong>3 am - 4 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>178 min</strong>"
                 },
                 {
                	"value":"86",
                	"toolText":"<strong>4 am - 5 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>86 min</strong>"
                 },
                 {
                	"value":"174",
                	"toolText":"<strong>5 am - 6 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>174 min</strong>"
                 },
                 {
                	"value":"214",
                	"toolText":"<strong>6 am - 7 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>214 min</strong>"
                 },
                 {
                	"value":"174",
                	"toolText":"<strong>7 am - 8 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>174 min</strong>"
                 },
                 {
                	"value":"210",
                	"toolText":"<strong>8 am - 9 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>210 min</strong>"
                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 }
          	]
           }
    	]
     }
  ],
  "lineset":[
     {
    	"seriesname":"Avg. Indoor Temp.",
    	"showvalues":"0",
    	"color":"5D5D5D",
    	"linethickness":"2",
    	"data":[
           {
          	"value":71,
          	"toolText":"<strong>12 am - 1 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>71°F</strong>{br}Average Outdoor: <strong>53°F</strong>"
           },
           {
          	"value":70,
          	"toolText":"<strong>1 am - 2 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>70°F</strong>{br}Average Outdoor: <strong>52°F</strong>"
           },
           {
          	"value":70,
          	"toolText":"<strong>2 am - 3 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>70°F</strong>{br}Average Outdoor: <strong>52°F</strong>"
           },
           {
          	"value":69,
          	"toolText":"<strong>3 am - 4 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>69°F</strong>{br}Average Outdoor: <strong>50°F</strong>"
           },
           {
          	"value":68,
          	"toolText":"<strong>4 am - 5 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>68°F</strong>{br}Average Outdoor: <strong>49°F</strong>"
           },
           {
          	"value":68,
          	"toolText":"<strong>5 am - 6 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>68°F</strong>{br}Average Outdoor: <strong>49°F</strong>"
           },
           {
          	"value":67,
          	"toolText":"<strong>6 am - 7 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>67°F</strong>{br}Average Outdoor: <strong>48°F</strong>"
           },
           {
          	"value":67,
          	"toolText":"<strong>7 am - 8 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>67°F</strong>{br}Average Outdoor: <strong>50°F</strong>"
           },
           {
          	"value":67,
          	"toolText":"<strong>8 am - 9 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>67°F</strong>{br}Average Outdoor: <strong>53°F</strong>"
           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           }
    	]
     },
     {
    	"seriesname":"Avg. Outdoor Temp.",
    	"showvalues":"0",
    	"color":"A85BAD",
    	"linethickness":"2",
    	"isHTML":"1",
    	"data":[
           {
          	"value":53,
          	"toolText":"<strong>12 am - 1 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>71°F</strong>{br}Average Outdoor: <strong>53°F</strong>"
           },
           {
          	"value":52,
          	"toolText":"<strong>1 am - 2 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>70°F</strong>{br}Average Outdoor: <strong>52°F</strong>"
           },
           {
          	"value":52,
          	"toolText":"<strong>2 am - 3 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>70°F</strong>{br}Average Outdoor: <strong>52°F</strong>"
           },
           {
          	"value":50,
          	"toolText":"<strong>3 am - 4 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>69°F</strong>{br}Average Outdoor: <strong>50°F</strong>"
           },
           {
          	"value":49,
          	"toolText":"<strong>4 am - 5 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>68°F</strong>{br}Average Outdoor: <strong>49°F</strong>"
           },
           {
          	"value":49,
          	"toolText":"<strong>5 am - 6 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>68°F</strong>{br}Average Outdoor: <strong>49°F</strong>"
           },
           {
          	"value":48,
          	"toolText":"<strong>6 am - 7 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>67°F</strong>{br}Average Outdoor: <strong>48°F</strong>"
           },
           {
          	"value":50,
          	"toolText":"<strong>7 am - 8 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>67°F</strong>{br}Average Outdoor: <strong>50°F</strong>"
           },
           {
          	"value":53,
          	"toolText":"<strong>8 am - 9 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>67°F</strong>{br}Average Outdoor: <strong>53°F</strong>"
           }
    	]
     }
  ]
}

 

 

<br class="Apple-interchange-newline">

Hi,

 

We would need the sample code to test from our end.

 

Also, please let us know the testing environment to replicate the issue as we are unable to replicate the issue.

 

Awaiting your response.

Share this post


Link to post
Share on other sites
Guest Bindhu

you just need the json that we generate?

 

The testing environment is in the javascript error above.

IE8 (base version) , windows xp sp1 - we had to install the windows xp mode and virtual machine for this in windows 7.

 

we integrated the fix and the problem goes away in IE8.

 

We are using MSStackedColumn2DLineDY.swf

 

json:

{
  "chart":{
     "isHTML":"1",
     "outCnvBaseFontSize":"9",
     "formatNumber":"1",
     "formatNumberScale":"0",
     "thousandSeparator":",",
     "showplotborder":"0",
     "plotBorderThickness":"0",
     "disable-pyAxisMinValue":"0",
     "disable-syAxisMinValue":"-10",
     "disable-syAxisMaxValue":"110",
     "disable-numDivLines":"10",
     "plotSpacepercent":"25",
     "bgAlpha":"0",
     "showBorder":"0",
     "canvasBorderAlpha":"0",
     "subcaption":"",
     "caption":"",
     "pyaxisname":"",
     "syaxisname":"",
     "decimals":"0",
     "setadaptivesymin":"-40",
     "plotGradientColor":"",
     "xaxisname":"",
     "palette":"1",
     "labelstep":"1",
     "labelDisplay":"wrap",
     "anchorRadius":"3",
     "toolTipBorderColor":"F26900",
     "toolTipBgColor":"fed75d",
     "legendIconScale":"1.5",
     "legendNumColumns":"4"
  },
  "categories":[
     {
		"font":"Arial",
		"fontsize":"12",
		"fontcolor":"222222",
		"category":[
           {
      		"label":"12{br}AM"
           },
           {
      		"label":"1{br}AM"
           },
           {
      		"label":"2{br}AM"
           },
           {
      		"label":"3{br}AM"
           },
           {
      		"label":"4{br}AM"
           },
           {
      		"label":"5{br}AM"
           },
           {
      		"label":"6{br}AM"
           },
           {
      		"label":"7{br}AM"
           },
           {
      		"label":"8{br}AM"
           },
           {
      		"label":null
           },
           {
      		"label":null
           },
           {
      		"label":null
           },
           {
      		"label":null
           },
           {
      		"label":null
           },
           {
      		"label":null
           },
           {
      		"label":null
           },
           {
      		"label":null
           },
           {
      		"label":null
           },
           {
      		"label":null
           },
           {
      		"label":null
           },
           {
      		"label":null
           },
           {
      		"label":null
           },
           {
      		"label":null
           },
           {
      		"label":null
           }
		]
     }
  ],
  "styles":{
     "definition":[
		{
           "name":"myLegendFont",
           "type":"font",
           "size":"11",
           "color":"CB6241",
           "bold":"1",
           "underline":"1",
           "padding":"40"
		}
     ],
     "application":[
		{
           "toobject":"Legend",
           "styles":"myLegendFont"
		}
     ]
  },
  "dataset":[
     {
		"dataset":[
           {
      		"seriesname":"Total Usage",
      		"color":"#91B93E",
      		"showvalues":"0",
      		"data":[
                 {
            		"value":"0",
            		"toolText":"<strong>12 am - 1 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
            		"value":"0",
            		"toolText":"<strong>1 am - 2 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
            		"value":"0",
            		"toolText":"<strong>2 am - 3 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
            		"value":"0",
            		"toolText":"<strong>3 am - 4 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
            		"value":"0",
            		"toolText":"<strong>4 am - 5 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
            		"value":"0",
            		"toolText":"<strong>5 am - 6 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
            		"value":"0",
            		"toolText":"<strong>6 am - 7 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
            		"value":"0",
            		"toolText":"<strong>7 am - 8 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {
            		"value":"0",
            		"toolText":"<strong>8 am - 9 am{br}Wed May. 2, 2012</strong>{br}{br}Family Room: <strong>0 min</strong>{br}Master Bedroom: <strong>0 min</strong>{br}{br}Total: <strong>0 min</strong>"
                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 }
      		]
           },
           {
      		"seriesname":"? - Low Connectivity",
      		"useRoundEdges":"0",
      		"color":"222222",
      		"alpha":"0",
      		"showvalues":"1",
      		"showPlotBorder":"0",
      		"plotBorderThickness":"5",
      		"plotBorderColor":"ff0000",
      		"plotBorderAlpha":"0",
      		"plotBorderDashed":"1",
      		"plotBorderDashLen":"5",
      		"plotBorderDashGap":"5",
      		"valuePosition":"below",
      		"data":[
                 {
            		"value":null,
            		"displayValue":null
                 },
                 {
            		"value":null,
            		"displayValue":null
                 },
                 {
            		"value":null,
            		"displayValue":null
                 },
                 {
            		"value":null,
            		"displayValue":null
                 },
                 {
            		"value":null,
            		"displayValue":null
                 },
                 {
            		"value":null,
            		"displayValue":null
                 },
                 {
            		"value":null,
            		"displayValue":null
                 },
                 {
            		"value":null,
            		"displayValue":null
                 },
                 {
            		"value":null,
            		"displayValue":null
                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 }
      		]
           }
		]
     },
     {
		"dataset":[
           {
      		"seriesname":"Homes in your area",
      		"color":"dedede",
      		"showvalues":"0",
      		"data":[
                 {
            		"value":"240",
            		"toolText":"<strong>12 am - 1 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>240 min</strong>"
                 },
                 {
            		"value":"200",
            		"toolText":"<strong>1 am - 2 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>200 min</strong>"
                 },
                 {
            		"value":"154",
            		"toolText":"<strong>2 am - 3 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>154 min</strong>"
                 },
                 {
            		"value":"178",
            		"toolText":"<strong>3 am - 4 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>178 min</strong>"
                 },
                 {
            		"value":"86",
            		"toolText":"<strong>4 am - 5 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>86 min</strong>"
                 },
                 {
            		"value":"174",
            		"toolText":"<strong>5 am - 6 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>174 min</strong>"
                 },
                 {
            		"value":"214",
            		"toolText":"<strong>6 am - 7 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>214 min</strong>"
                 },
                 {
            		"value":"174",
            		"toolText":"<strong>7 am - 8 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>174 min</strong>"
                 },
                 {
            		"value":"210",
            		"toolText":"<strong>8 am - 9 am{br}Wed May. 2, 2012</strong>{br}{br}Average system usage of homes in {br}your area: <strong>210 min</strong>"
                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 },
                 {

                 }
      		]
           }
		]
     }
  ],
  "lineset":[
     {
		"seriesname":"Avg. Indoor Temp.",
		"showvalues":"0",
		"color":"5D5D5D",
		"linethickness":"2",
		"data":[
           {
      		"value":71,
      		"toolText":"<strong>12 am - 1 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>71°F</strong>{br}Average Outdoor: <strong>53°F</strong>"
           },
           {
      		"value":70,
      		"toolText":"<strong>1 am - 2 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>70°F</strong>{br}Average Outdoor: <strong>52°F</strong>"
           },
           {
      		"value":70,
      		"toolText":"<strong>2 am - 3 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>70°F</strong>{br}Average Outdoor: <strong>52°F</strong>"
           },
           {
      		"value":69,
      		"toolText":"<strong>3 am - 4 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>69°F</strong>{br}Average Outdoor: <strong>50°F</strong>"
           },
           {
      		"value":68,
      		"toolText":"<strong>4 am - 5 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>68°F</strong>{br}Average Outdoor: <strong>49°F</strong>"
           },
           {
      		"value":68,
      		"toolText":"<strong>5 am - 6 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>68°F</strong>{br}Average Outdoor: <strong>49°F</strong>"
           },
           {
      		"value":67,
      		"toolText":"<strong>6 am - 7 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>67°F</strong>{br}Average Outdoor: <strong>48°F</strong>"
           },
           {
      		"value":67,
      		"toolText":"<strong>7 am - 8 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>67°F</strong>{br}Average Outdoor: <strong>50°F</strong>"
           },
           {
      		"value":67,
      		"toolText":"<strong>8 am - 9 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>67°F</strong>{br}Average Outdoor: <strong>53°F</strong>"
           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           },
           {

           }
		]
     },
     {
		"seriesname":"Avg. Outdoor Temp.",
		"showvalues":"0",
		"color":"A85BAD",
		"linethickness":"2",
		"isHTML":"1",
		"data":[
           {
      		"value":53,
      		"toolText":"<strong>12 am - 1 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>71°F</strong>{br}Average Outdoor: <strong>53°F</strong>"
           },
           {
      		"value":52,
      		"toolText":"<strong>1 am - 2 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>70°F</strong>{br}Average Outdoor: <strong>52°F</strong>"
           },
           {
      		"value":52,
      		"toolText":"<strong>2 am - 3 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>70°F</strong>{br}Average Outdoor: <strong>52°F</strong>"
           },
           {
      		"value":50,
      		"toolText":"<strong>3 am - 4 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>69°F</strong>{br}Average Outdoor: <strong>50°F</strong>"
           },
           {
      		"value":49,
      		"toolText":"<strong>4 am - 5 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>68°F</strong>{br}Average Outdoor: <strong>49°F</strong>"
           },
           {
      		"value":49,
      		"toolText":"<strong>5 am - 6 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>68°F</strong>{br}Average Outdoor: <strong>49°F</strong>"
           },
           {
      		"value":48,
      		"toolText":"<strong>6 am - 7 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>67°F</strong>{br}Average Outdoor: <strong>48°F</strong>"
           },
           {
      		"value":50,
      		"toolText":"<strong>7 am - 8 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>67°F</strong>{br}Average Outdoor: <strong>50°F</strong>"
           },
           {
      		"value":53,
      		"toolText":"<strong>8 am - 9 am{br}Wed May. 2, 2012</strong>{br}{br}Average Indoor: <strong>67°F</strong>{br}Average Outdoor: <strong>53°F</strong>"
           }
		]
     }
  ]
}

 

 

<br class="Apple-interchange-newline">

 

 

Hi,

 

I am unable to replicate the issue.

 

Please find attached screen shot of the chart rendered using the sample JSON data.

 

Hope this helps !

 

post-23884-0-39008300-1336028321_thumb.png

Share this post


Link to post
Share on other sites

Odd... I wonder what is causing this then. Would it be possible for you to send us the html file you used to load the json and render the chart? Maybe there's something we're missing or misconfigured?

Did you make any changes to the json at all?

 

Thanks

 

attached is the screenshot of the dev console and the error we got.

 

 

Hi,

 

I am unable to replicate the issue.

 

Please find attached screen shot of the chart rendered using the sample JSON data.

 

Hope this helps !

 

 

post-27736-0-64622100-1336031259_thumb.jpg

post-27736-0-38125400-1336031309_thumb.jpg

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Please find attached a sample demo project that can be used to render the chart.

 

Hope this helps !

Demo.zip

Share this post


Link to post
Share on other sites

Can you verify that you ran this in javascript mode? We still see the issue.

We get invalid data with your demo files and javascript errors, although, it renders fine in flash mode.

 

>> FusionCharts.setCurrentRenderer('javascript');

 

 

Hi,

 

Please find attached a sample demo project that can be used to render the chart.

 

Hope this helps !

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

The issue is with the degree symbol used in the toolText of Lineset element.

 

Please encode it as °

 

Hope this helps!

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