IT/Javascript

Toolbars are not displayed when using the Apexcharts in the IE

두원아빠 2021. 7. 20. 18:47

polyfill.min.js
0.00MB

When the new project was launched 3 months ago, my customer asked us to support Chart function in the IE environment.

 

I reviewed several open-source charts, and as a result, I decided Apexcharts was the best option.

 

ApexCharts is a modern charting library that helps developers to create beautiful and interactive visualizations for web pages. It is an open-source project licensed under MIT and is free to use in commercial applications.

 

Because it stated that it supports the browser below, and it actually worked well.

But, the problem soon came to the surface.  A toolbar is not displayed Line Chart in the IE environment.

We reviewed the documents provided by ApexCharts.

 

"Aha. Good. Here's the solution.", I applied polyfill.js, but the result is the same.

 

After analyzing the cause using 'IE11 developer tools', it was suspected that it was a Promise problem, so the test was carried out by rewriting 'polyfill.js'.

 

"polyfill.js" can be made using the site below. Note that a normal js file can be generated only when visiting IE.

Or use the js file attached to this blog.

https://polyfill.io/v3/