Chartjs-How to get dynamic popover element after inserted to DOM?

0👍

I discovered what was needed to make it work, so unexpected. I needed to turn off auto sanitize with:

        $('[data-toggle="popover"]').popover({
          html: true,
          content: '<canvas id="myChart" width="400" height="400"></canvas>',
          sanitize: false
        }).on('shown.bs.popover', function() {

Leave a comment