๐:0
If you have different chart options for each chart, you need to create a clone of the chartOptions object for each chart.
For plain JavaScript, I usually prefer https://stackoverflow.com/a/4591639/360067 for its simplicity, but if you have libraries (jQuery, etc) you have a lot of other options.