highcharts / highcharts-vue

Other
686 stars 150 forks source link

Options are reset on chart.update #46

Closed micahjscheer closed 5 years ago

micahjscheer commented 5 years ago

I noticed that after updating to Highcharts 7, nested options (ie. label), were being replaced with an empty object if the computed options object (I was passing as a prop), was updated. I, therefore, drew the conclusion that something on the chart.update was mutating the options deeply.

I noticed that there was an update to highcharts-vue made where you fixed errors on updating, caused by mutating data. I believe a possible solution to this issue could be that instead of using Object.assign to do a shallow clone, a deep clone could be done instead.

TorsteinHonsi commented 5 years ago

Fixed upstream in https://github.com/highcharts/highcharts/issues/9711

KacperMadej commented 5 years ago

The problem should be resolved in Highcharts version 7.0.1 - it's already published. Please reopen in case the problem is not resolved.