<!--prepare a size (wide-height) Dom-to-<div id= "main" style= "Height:400px;width:1200px;z-index:1;position for Echarts: absolute; " ></div>
When Echart is used in IE, the chart is not displayed after adding postion in the div. The main problem is that Echart adds a filter to the DIV after compiling, which hides the Div,
Modify the method, of course, is deleted, one is to find Echart source files to modify the bug, this is too much to find, two is the picture after the completion of the load to delete style, the following is the second method of resolution:
1. Extract your Style
<style>
#main
{Height:400px;width:1200px;z-index:1;position:absolute;}
</style>
<!--prepare a DOM-to-size (wide-height) for echarts
<div id= "main" ></div>
2. Delete style after loading is complete
Fix Echart Bug does not support position problem function echartie8bug () {var $tar = $ (' #main, #pieMain '); $tar. removeattr (' style ');}
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Resolve Echart when using in IE, the chart does not display the problem after adding postion in Div