Explicitly destroy chart on data change
relocated explicit chart destruction, single if
Merge pull request #8 from danada/explicit-chart-destroy

Explicitly destroy chart on data change