I’m attempting to use Chart.js inside a web part in 2010. I’m using IE11 but as many of you know, SharePoint 2010 is run under IE8 compatibility. I’ve attempted to use older versions of Chart.js but was only able to eliminated the “forEach” problem I was having. I would like to have either a content editor web part or a page viewer web part not use the IE8 compatibility. I don’t have access to change the master page. I’ve attempt to set the compatibility in the header of my html with a different compatibility and attempted quirks mode.
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
I originally tried to include my html file in a content editor and then later in a page viewer. My chart shows in chrome and in other IE versions. Otherwise it doesn’t show and I get a getContext error. Yes, I did attempt to use excanus but the chart comes up really slow in IE. The best solution would be just to find a way I could change the compatibility for a web part or page.