-
Notifications
You must be signed in to change notification settings - Fork 80
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 sometimes fail to render #92
Comments
Hi @jenniferburch , Thanks for reporting this issue. Kind regards! |
Hi @jenniferburch, |
@sebastianbochan , xCode is version 11.6 (11E708) |
I will test it and get back to you, when reproduce the problem. |
FYI I found a workaround, just adding a small delay to stagger loading each chart fixed the problem in this example. I've updated https://github.com/jenniferburch/hello-charts in case it helps diagnose/fix the problem. (I did not exhaustively test how small the delay can be and still be effective) |
I am having the same issue, with the same s "Possible Unhandled Promise Rejection" error. |
We were able to reproduce the problem in the native React Native. Just working on solution of the problem. |
Hi @jenniferburch, @jj-julia , The problem should be resolved in the latest package release. Now everything looks fine to us, and the problem is not reproducible. Could you update the package and let us know about the results? Kind regards! |
Hi @Denyllon Unfortunately results aren't good. The Android version mostly loads but then sometimes crashes with this error: The iOS version mostly crashes with a similar issue: I've updated my github sample project. Results are just from running in the emulator, not on an actual device. |
Do you have the proper https://github.com/highcharts/highcharts-react-native#installing |
@jenniferburch Have you tried to follow the steps described in that issue? I've not already added some informations into the documentation, but you can try to do it and necessarily let us know about the result. Kind regards! |
@sebastianbochan and @Denyllon I think the project is configured correctly, do you get different results ? |
Hey @Denyllon It is working for me now with the changes. Thanks for that :) I still have one outstanding issue: Is this something that you could add to the wrapper? If you would like to know more about what i mean, or how I have previously implemented it, let me know (also happy to open a feature request) Julia |
Thank you @jenniferburch , I've just started debugging the problem. |
@julia-hitiq The annotiations module is not officially supported by this wrapper, and we do not have any ETA of when it will be added. I suspect it does not work because the way of loading scripts has changed from v3.0.0, and the old implementation of getting scripts will no longer work here. I guess similar situation will appear when trying to load moment libraries. In order to make it work, I recommend you to read about Kind regards! |
I still have an issue with this, it seems that in a scrollview some charts are not rendered but it's random... The webview is created but there is no chart rendered in it. And I don't have any errors or warnings. I have |
@angeliqueIcono We've tested the project created by @jenniferburch, and indeed the problem was noticeable there, but after creating the fix distributed in v3.1.2, this problem disappeared and was no longer reproducible. It is always better and much convenient to us to work on real examples of issues, so could you prepare your own minimal repository/project and provide us with it so that we would be able to take a look on it? |
You can see on this project : some charts are rendered and some not |
@angeliqueIcono Really apologize for not answering here for such a long time. I left the comment which explains complexity of the problem you encountered. Unfortunately, for now, we're not able to take steps to resolve the issue, and need to consider possible solutions. |
I have a very simple proof of concept type app that takes between 5 to 15 static chart definitions and renders them.
and chartOptions is just an array of options
the data objects are name-data pairs:
{ name: 'seriesname', data [ array of numbers ] }
Sometimes everything works fine and they all render but there are also times when not all of the charts render, and which charts fail is inconsistent. This happens most frequently in the iOS simulator but I've also reproduced the issue on the Android simulator and a connected iOS device.
There will be a yellow warning in the simulator that says "Possible Unhandled Promise Rejection" with something like : File 'file:///Users/jenb/Library/Developer/CoreSimulator/Devices/37B6F61D-FC65-4EE4-A0C5-C643FE4577DF/data/Containers/Data/Application/5F22450A-4DC4-4C8C-BA49-D4DDF505ABAC/Library/Caches/ExponentAsset-ffceb4b4585b380fc666d3882abee7e5.html' could not be read.
However when I navigate to that location that file is present.
Do you have any advice or a workaround? My project is using :
"@highcharts/highcharts-react-native": "^3.0.1",
"react": "~16.11.0",
"react-native": "~0.62.2",
"react-native-webview": "^10.3.2"
The text was updated successfully, but these errors were encountered: