Recreate the chart when any of its config parameter or data changes

If any of the config property changes, the chart has to be re-created, otherwise the changes will not have any effect.