-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Charts not showing in IE9 or IE10 v2.x #1622
Comments
In 8,9 & 10 doesn't work too. |
Ok then, I'm going hunting for the bug. Wish me luck or even better give me some ideas about what might be wrong... anyone? |
Just can wish U luck. |
I have the same issue with Safari 9: charts are not showing on first page load. They are showing if I delete/re-create the canvas later in the script. |
I've found the issue - the canvas width and height is being set to 0 - resizing on-the-fly fixes the issue. |
andi-b, will try it out asap! if it works, you are my hero. |
@andi-b if you have a fix for this, I'd be happy to merge a fix. |
It looks likely to be something within this code that's causing the issue:
|
Thought I was getting closer with the resize function, but data appears to be the same. The difference I'm getting with the HTML: Firefox: IE9: |
@andi-b try investigating the resize code |
I've spent quite a lot of time on this and didn't get very far, but have found a workaround (although may not work with responsive) that may help others figure out what's happening. My workaround:
|
Yes I've got something similar working too. Fortunately we need to fix this asap for a client, so I will try to get some work done for a pull request. I will look into the responsive part too, since we use that also. @andi-b thanks for pointing out the problematic part! |
@byCedric This update doesn't appear to have worked for me - I'm using IE11, emulating to IE9 and IE10. I see the work has been done in the core.helpers.js in the retina function: Do I need to include this file or is this already included within chartjs? And do I need to 'switch on' the option to have it work with Retina displays in order for this fix to work? Many thanks |
@andi-b Did you tried to recompile or rebuild the main I did change some code in the But to do this manually, you have two options. You can clone this repository and rebuild it yourself. When doing this you have control over your own {
"dependencies": {
"chart.js": "<github name>/<repo name>#v2.0-dev"
}
}
The second option is to add a script to NPM (your own {
"scripts": {
"build-chartjs": "cd ./node_modules/chart.js/ && npm install && ./node_modules/gulp/bin/gulp.js build && cd ../.."
}
}
Personally I recommend to use the second option, until the main |
Closing as #1690 was merged. An updated build with this change is available in the v2.0-dev branch. |
Just for the v2 dev version using ie9 I'm not seeing the charts drawn into the canvas element (I tried line and bar charts). I tried tracking down where the issue is occurring without success.
I'm also seeing the issue in IE10... I'm using the sample files.
Am I doing something wrong or is this a known issue?
The text was updated successfully, but these errors were encountered: