Open mhtghn opened 4 years ago
Hello together, I run into the same issue. Has someone found a workaround for it? Thanks for your help. I would like to mention, that the issue does not appear for me when using the emulator. It can only be observed on a real device
Hi @cjohn001, the only workaround that I have is to redraw the chart everytime the page is loaded. Once you redraw the chart, it will use the styles you provided
You either can do that from Typescript using the @HostListener('loaded')
decorator above the function that redraw the chart.
Either from the HTML file using (loaded)="redrawFn()"
Hope that helps
Hello @mhtghn, thank you very much. Unfortunately, this is only a partial workaround, when the app resumes from background or gets active after screensaver was shown, it takes about half a second till load event is called. Hence, the wrong chart colors show up for about half a second before it is rerendered with the correct color palette. Looks like we have to wait till the bug here gets fixed.
Hello together, I am wondering, is there maybe a method how I can enforce the chart to redraw without updating the data of the chart? I am still searching for a decent workaround.
It seems like ios at least redraws the chart the first time the app comes back from the background. I am wondering if there is an option to refresh the lost pallete before the view is rendered? Just thinking about better workaround options then resetting the displayed data in order to force a redraw. Thanks for your help.
Please, provide the details below:
Tell us about the problem
When displaying a chart and styling it using Palettes, it will style it correctly but as soon as the app goes suspended for a few time and is resumed the styling is not applied and the chart is displayed using default colors (as if there were no styling at all).
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
HTML