Wrong div id.

Inexistent div as set_chart() parameter on charge mode checkbox
Charge mode should work now.