Widget:Napchart: Difference between revisions
From Polyphasic Sleep Wiki
No edit summary Tag: Reverted |
Tag: Undo |
||
| Line 13: | Line 13: | ||
.then(response => response.json()) | .then(response => response.json()) | ||
.then(data => { | .then(data => { | ||
Napchart.init(ctx, data['chartData']); | Napchart.init(ctx, data['chartDocument']['chartData']); | ||
console.log(data); | console.log(data); | ||
}) | }) | ||
