Canvas won't appear in html 30 September 2023 by thecoderscamp.com ๐:0 link: function (scope,element, attrs){ var canvas = element.attrs('id'); What about this way of getting ID. How to export charts.js dynamic chart to PDF in Rails Chart.JS custom legend onClick event returns error when calling original event handler