HTML5 Zone is brought to you in partnership with:

Gary Sieling is a software developer interested in dev-ops, database technologies, and machine learning. He has a computer science degree from the Rochester Institute of Technology. He has worked on many products in the legal and regulatory industries, having worked on and supported several data warehousing applications. Gary is a DZone MVB and is not an employee of DZone and has posted 62 posts at DZone. You can read more from them at their website. View Full User Profile

Fixing Issues when ExtJS Charts Don't Render in IE

11.13.2012
| 2690 views |
  • submit to reddit

I’ve encountered several instances where ExtJS charts fail to render in non-obvious ways in IE- these are all with the 3.x branch, but may apply elsewhere. The charts are rendered using a Flash SWF file repurposed from YUI libraries.

  1. By default, ExtJS pulls the SWF from a Yahoo! CDN, unless configured otherwise. Recently YUI upgraded this file, and now charts fail to render in some ExtJS versions.  You can confirm this by checking network traffic from the browser. To fix this, Ext.chart.Chart.CHART_URL should be set to load this from a local resource.
  2. If there are several charts on one page, they may intermittently fail to render. ExtJS uses a cache-buster url parameter, _dc. This is set to the current time in milliseconds – when rendering many charts simultaneously, the SWF requests may receive the same value for _dc. For whatever reason, this can cause a charts to fail.
  3. Javascript errors can also cause failures- check for trailing commas within javascript objects.



Published at DZone with permission of Gary Sieling, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)