When echart is used in IE, the chart is not displayed after postion is added to div. echartpostion
<! -- Prepare a Dom with the size (width and height) for ECharts --> <div id = "main" style = "height: 400px; width: pixel PX; z-index: 1; position: absolute; "> </div>
When echart is used in IE, It is not displayed after postion is added to div. The main problem is that after echart is compiled, the filter is added to the div to hide the div,
If the modification method is used, delete the file. First, locate the source file of echart and modify the bug. This is too many files and cannot be found. Second, delete the style after the image is loaded, the second solution is as follows:
1. extract your own style
<Style>
# Main
{Height: 400px; width: pixel PX; z-index: 1; position: absolute ;}
</Style>
<! -- Prepare a Dom with the size (width and height) for ECharts -->
<Div id = "main"> </div>
2. Delete the style after loading.
// Function eChartIe8Bug () {var $ tar =$ ('# main, # piemain'); $ tar. removeAttr ('style ');}
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.