Chartjs-(ng2-charts, angular) Doughnut chart not showing up after AOT? (but filltext is working)

0👍

I figured out the culprit. I had “title: 100%” in the chart options which was causing the graph to not be drawn on the AOT build. I was messing with this when I was figuring out how to get the text drawn in the middle of the doughnut and forgot to remove it. The fact that it worked locally but didn’t work after the AOT build doesn’t make any sense to me. Removing that option makes it work on both builds though.

Leave a comment