score:4

Accepted answer

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.


Related Query

More Query from same tag