I'm triyng to add a chart to my Android app using Chart.js
At Intel-XDK emulator and in Debug Mode (DebugTab) this works perfectly, but if I try run it using App Preview or if I build the apk I can't see the chart.
<code>
function Skills(){
document.getElementById("MinhasHabilidades").style.display = 'block';
document.getElementById("inicio").style.display = 'none';
var ChartData = {
labels: ["Ler", "Ouvir", "Escrever", "Falar"],
datasets: [{
fillColor: "rgba(0,128,255,0.5)",
strokeColor: "rgba(220,220,220,0.8)",
highlightFill: "rgba(220,220,220,0.75)",
highlightStroke: "rgba(220,220,220,1)",
data: [9, 13, 4, 12]
}]
};
var ctx = document.getElementById("myChart").getContext("2d");
window.myBar = new Chart(ctx).Radar(ChartData, {responsive: true});
}
</code>
When I call the "new Chart(ctx)..." the function stop.