Difference between revisions of "Widget:Napchart"
From Polyphasic Sleep Wiki
m (c) |
m |
||
Line 9: | Line 9: | ||
var ch; | var ch; | ||
$.getJSON('http://thumb.napchart.com:1771/api/get?chartid=' + id, function(data) { | $.getJSON('http://thumb.napchart.com:1771/api/get?chartid=' + id, function(data) { | ||
− | + | var myNapchart = Napchart.init(ctx, data['chartData']['elements']) | |
+ | console.log(data) | ||
}); | }); | ||
− | + | ||
− | + | ||
− | |||
</script> | </script> | ||
</includeonly> | </includeonly> |