Posted 25 March 2019, 7:14 pm EST
I am having a problem getting a chart to display in a modal dialog. Here is my div that adds the modal dialog to my viewer
And here is my event listener
agingChart.addEventListener(‘click’,
function (e) {
var lblTitle = ‘Accounts Receivable Aging’;
document.getElementById(‘txtTitle’).innerHTML = lblTitle;
addReceiptsChart(next30Days, dueByDay)
wijmo.Control.invalidateAll(document.querySelector(‘#modalContainer’));
$(‘#myModal’).modal(‘show’);
});
With the line invalidateAll line of code I have tried placing it different places and referencing different element id’s but nothing seems to work. When I go to the console, then the chart displays with the data so I know the chart is getting loaded.
Thanks, Ed