danvk / dygraphs

Interactive visualizations of time series using JavaScript and the HTML canvas tag
http://dygraphs.com
Other
3.17k stars 606 forks source link

First graph image stays in background #398

Closed danvk closed 8 years ago

danvk commented 9 years ago

From rod.maci...@sympatico.ca on April 15, 2013 11:38:16

When the file loads it draws the graph and some points and lines to start. Then as the dynamic update begins, the new graph starts to scroll over the first one. The vertical lines from the first graph are also fixed on the display and the new vertical lines are scrolling over them too.

Screen shot attached.

  1. Link to a page which demonstrates the problem http://dygraphs.com/tests/dynamic-update.html 2. Browser and Operating System that exhibit the problem Android 4.2.1 Native Browser (Chrome does not show this issue)

Attachment: DyGraphSeeingDouble.png

Original issue: http://code.google.com/p/dygraphs/issues/detail?id=461

danvk commented 9 years ago

From rod.maci...@sympatico.ca on April 25, 2013 11:36:26

Workaround is to use the callback to set the background color: http://dygraphs.com/tests/underlay-callback.html .

danvk commented 9 years ago

From danyv...@gmail.com on July 30, 2013 00:27:45

This issue is here because the clearRect method is not working in the Native Android browser, The issue from Google groups is here https://code.google.com/p/android/issues/detail?id=39247 When this one is fixed also the dygraphs issue can be closed Also i saw some suggestions for using canvas.witdh=canvas.width to clear the canvas

danvk commented 9 years ago

From konigsb...@gmail.com on September 13, 2013 10:08:35

Thanks for the report. It looks like the native Android browser is a bit of a pain. :(

Status: Accepted
Labels: Tablet

danvk commented 9 years ago

From phonegap...@gmail.com on September 29, 2014 08:45:38

Cordova Apps on Android <=4.3 are using old WebView. It will take some years until this Webkit bug can be ignorred.

danvk commented 9 years ago

From phonegap...@gmail.com on September 29, 2014 11:11:19

I made a workaround that works for multitouch zoom on old android: https://github.com/robotnic/dygraphs/compare/danvk:master...master (dygraph-canvas.js only, the other changes are for bower)

danvk commented 8 years ago

Pre-4.3 android has pretty limited usage now. I'm going to close this out; I'd rather not be in the business of fixing browser bugs going forward.