Chart.js running on browser and emulate but not on device

Hey Guys.

I’ve had some issues using Chart.js but the way i came up fixing it was by making my own custom directive with the following code in for a pie chart:

var data = {
labels: scope.labels,
datasets : [
{
fillColor : “rgba(172,194,132,0.4)”,
strokeColor : “#ACC26D”,
pointColor : “#fff”,
pointStrokeColor : “#9DB86D”,
data : [203,156,99,251,305,247]
}]

It works perfect on browser and when i emulate to whatever, but when i upload it so i can see it on my phone, nothing shows. I’ve made a new blank ionic project and ran the same code and that works. Any ideas why?

Thanks in advance!

  • Fillah