Recreate the chart when any of its config parameter or data changes
Do not try to create a chart with no data