[Chartjs]-Bootstrap modal not working with chartjs line graph

3👍

Change

$("#modal").on('show.bs.modal', function() { }

show.bs.modal Occurs when the modal is about to be shown

to

$("#modal").on('shown.bs.modal', function() {}

shown.bs.modal Occurs when the modal is fully shown.

will give the enough room to render / draw the chart and display output in modal.

Leave a comment