0👍
✅
Maybe call your example function.
(function() {
example($("#chart"));
})();
0👍
just make canvas height according to your page visibility. it worked for me EX.
<canvas id="pie_chart" height="78"></canvas>
Source:stackexchange.com