I am experiencing an issue with a javascript enabled WebView
using a ChromeWebClient
. The Chart.Js pie example displays fine until I set the options to animation: false, after which the chart stops displaying.
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 strange thing is that the first pie chart with disabled animation does not display, while the second one does. Both charts work perfectly on desktop Chrome, but when accessed through an Android 4.4.4 device, the inanimated chart only appears after tapping the area where it should be (presumably refreshing due to the touch event).
Is this possibly a bug, or am I overlooking something?