Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE8 Compatibility ? #2396

Closed
chrisc4 opened this issue Apr 27, 2016 · 3 comments
Closed

IE8 Compatibility ? #2396

chrisc4 opened this issue Apr 27, 2016 · 3 comments

Comments

@chrisc4
Copy link

chrisc4 commented Apr 27, 2016

Hello,

I include excanvas and es5 scripts but it seems that Chart.js not working on IE8

My head:
<script src="https://code.jquery.com/jquery-1.12.3.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-shim.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-sham.min.js"></script> <script src="https://cdn.jsdelivr.net/excanvas/r3/excanvas.js"></script>

And chart declaration:
`var canvas = document.getElementById("canvas");
canvas = G_vmlCanvasManager.initElement(canvas);

        var ctx = canvas.getContext("2d");
        window.myBar = new Chart(ctx, {
        ...`

And i get an JS error on:

Object.defineProperty(this, 'data', { get: function() { return this.config.data; } });

@migsc
Copy link
Contributor

migsc commented Apr 27, 2016

According to the docs, IE8 is not supported because that browser does not support the canvas element.

@etimberg
Copy link
Member

V1 supported IE8. V2 does not because we make use of some other properties not available in IE8. IE9 should work.

@kiquenet
Copy link

http://www.chartjs.org/docs/#notes-browser-support not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants