The clone function works well. But I am wondering is it going to create a memory leak if I do the clone many times, since it keeps on create new charts, but old charts never get disposed?
Currently, my solution is dispose the old chart, and create a new one at the same place with new type and data. It works fine for me. But it would be better if there is a way to just update the original chart instead of creating a new one.