Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49164

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

$
0
0

@fillah wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>