///Setup del chart desiderato con id univoco window.setup = (id, config) => { var ctx = document.getElementById(id); if (window['mlChart' + id] instanceof Chart) { window['mlChart' + id].destroy(); window['mlChart' + id] = new Chart(ctx, config); } else { window['mlChart' + id] = new Chart(ctx, config); } }