Angular chart showing series but no data

👍:0

Is your chart in an element / hierarchy that is hidden / shown (like ng-show or a class that is swapped out, a bootstrap panel…)?

What seems to be happening is that Chart.js is getting the height of the canvas (when it is initializes by angular-chart, which in turn happens when the scope data is changed) as near 0.

For the same reason, a deferred variable change works – because whatever parent / style is causing the canvas to have a small height is now at it’s full height.

Leave a comment