Resolve Echart when using in IE, the chart does not display the problem after adding postion in Div

Source: Internet
Author: User

<!--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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.