Monday 15 February 2010

javascript - Chart.js not displaying on Android Webview if animation is set to false -



javascript - Chart.js not displaying on Android Webview if animation is set to false -

i have javascript enabled webview chromewebclient , display chart.js pie illustration fine. after set options animation: false, stop displaying chart.

var pieoptions = { animation : false } window.onload = function(){ var ctx1 = document.getelementbyid("chart-area1").getcontext("2d"); window.mypie1 = new chart(ctx1).pie(piedata,pieoptions); var ctx2 = document.getelementbyid("chart-area2").getcontext("2d"); window.mypie2 = new chart(ctx2).pie(piedata); };

the first pie chart disabled animation doesn't display, sec does. both display fine on desktop chrome. using android 4.4.4 device way. after tapping inanimated chart should be, display (i guess refreshing chart touch event).

am missing or bug?

i tried reply on android webview renders blank/white , solved problem. tell webview avoid using hardware rendering:

webview.setlayertype(view.layer_type_software, null);

javascript android webview chart.js

No comments:

Post a Comment