<meta http-equiv="X-UA-Compatible" content="IE=edge" />
added the above and IE started behaving
题
I'm using NVD3 chart templates
when drawing the graph IE (currently using IE11) gives the error:
"Object doesn't support property or method 'addGraph'
the object it is referring to is 'nv'
on this code:
self.drawGraph = function () {
var chart;
var data = self.formatData(self.currentFits, self.controlFits);
nv.addGraph(function () {
chart = nv.models.lineChart().margin({ left: 200, right: 100 }).useInteractiveGuideline(true).forceY([-0.01, 0.01]).forceX([0, 120]);
d3.select('#SpotRatesChart svg')
.datum(data)
.call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
}
this is not happening when i debug on my local development server just when i deploy to the test server.
regards,
解决方案
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
added the above and IE started behaving