Comments (7)
@chintan9 Could you elaborate on your changes? It's tough to make out from the build file.
from charts.
IE 11 doesn't support ES6. I don't think there is much you could do here.
from charts.
@sakopov It can work. you may test now http://jsbin.com/guvuvav/1/edit?html,js,output
you need this file https://raw.githubusercontent.com/chintan9/charts/master/dist/frappe-charts.ie11.min.js
from charts.
@pratu16x7 Simply I decompile you code to es6 (es2015) level and add polyfills for ie11.
I think we can do it for rollup also. you have to preset es2015 than ask user to add polyfill to support IE11.
from charts.
How about adding the polyfill into our src/scripts
to make this simpler? Closing this for now. Please feel free to reopen.
from charts.
Will have to agree with @sakopov. About polyfills, from https://babeljs.io/docs/usage/polyfill:
This will emulate a full ES2015+ environment and is intended to be used in an application rather than a library/tool.
We don't intend to go that way; that'd defeat the zero-dep purpose. We'd be happy if there is a more elegant way to achieve this. Closing for now.
from charts.
@pratu16x7 Transpile whole lib to es5 would be solution. Meanwhile We put in docs support IE11 via environment
add only this line in head tag
<script type="text/javascript">
if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent))
document.write('<script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/2.5.1/shim.min.js"></script');
</script>
https://jsbin.com/biqoyuxomu/1/edit?html,js,output
It does not require any js changes on charts lib.
from charts.
Related Issues (20)
- trancateLegends HOT 1
- A Year-wise Heatmap HOT 2
- How to create combo chart with Dual Y-Axis HOT 1
- Commas to large numbers HOT 1
- Donut chart vertical legend cut off HOT 2
- Bug: adding `lineOptions: { spline: 1 }` leads to a console error HOT 1
- Implement measures and style overrides HOT 1
- Hide parts of a dataset HOT 7
- how to implement a horizontal bar? HOT 1
- Line chart y-axis is dynamic instead of starting at Zero HOT 1
- Histogram Chart?
- Missing legend causes uncaught errors when updateing data.
- How to declare HTML for charts' labels? HOT 1
- How to get the same design as the website example? HOT 2
- multiple numbers are overwritten for valuesOverPoints set to 1 HOT 2
- Pie Inline Labels HOT 4
- Console errors reporting NaN HOT 1
- Use a linear gradient as line color
- Promise or event for render complete? HOT 1
- Feature Request: Total in tooltip for area chart regionFill
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.