Can't get chart.js to refresh a pie chart with new data passed to it from a Wix lightbox

Have a look at this thread. Old, but still valid. (SOLVED) Dynamic HTML Component JS Widget for Dynamic pages