When echart is used in IE, the chart is not displayed after postion is added to div. echartpostion

Source: Internet
Author: User

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.

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.