how to change chart is data exist or not in chart.js code example Example: switch19 dynamically update js $('#ELEMENT_ID').attr('checked', 'false');