-
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
Not showing Ionic Android #5184
Comments
I resolved temporarily with the issue #4570 but I would like that help me solve the problem completely, making Chart.js work normally. |
Hi, How did you solve it? |
@samdonoso I resolved temporarily with issue #4570 Chart.js but I waiting that help me solve the problem completely, making Chart.js work normally. Workaround Solution - displays the chart but actions will be lost (mouse click, hover over etc): 1- Wrap your canvas within a Div (add any styles to the div you may need)
2- Suggest removing any 'animation' (although you could alter the code below in item 3/ to use the endAnimation event to track when to carry out the temp fix) - Add into your options:
3- Add the following code - have made this simple, but could be improved re end of animation if required: (jQuery)
(javascript)
|
I have a Pixel and the chart works fine. I have tested this on the Android Simulator for a Nexus 5 phone and the chart worked. I used API P for the Nexus 5. However, on the Nexus 7 and 10 tablets it does not work (no chart showing) using the API 27. This is really unfortunate for our new app that has the chart as its central theme. Sigh. |
Kind of a "me also" but I can't get chart.js to run on Android as well. |
Please ask questions on StackOverflow: https://stackoverflow.com/questions/tagged/chart.js |
I'm not sure why this was closed. |
This seems like a duplicate of #4570. Let's track it there Also, there's no information suggesting there's a bug in Chart.js as opposed to a bug in Cordova, Android, etc. or what you would like changed |
App developed in Ionic.
Chart.js not showing in android emulator.
ionic cordova run android --emulator
But in the web view (
ionic cordova run browser
) and iPhone (Ionic View App) it's showing perfectlyhtml template
scss
component.ts (I tried responsive and maintainAspectRatio with true, false)
The text was updated successfully, but these errors were encountered: