added an example about chart update with key