Over a million developers have joined DZone.
Platinum Partner

Fixing Issues when ExtJS Charts Don't Render in IE

· Web Dev Zone

The Web Dev Zone is brought to you in partnership with Mendix. Download this Forrester Report to gain a better understanding of the low-code platform market and how to make a strategic platform selection you won’t regret.

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.



The Web Dev Zone is brought to you in partnership with Mendix. Better understand the aPaaS landscape and how the right platform can accelerate your software delivery cadence and capacity with the Gartner 2015 Magic Quadrant for Enterprise Application Platform as a Service.

Topics:

Published at DZone with permission of Gary Sieling , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}