pablojim / highcharts-ng

AngularJS directive for Highcharts
MIT License
1.73k stars 463 forks source link

how to get chart object in angular7, for re-rendering? #656

Open Anj21 opened 5 years ago

Anj21 commented 5 years ago

A workaround ( jQuery!) is to get it from the element:

var chart = $('#theChart').highcharts();
chart.series[0].update({ color: '#d14242' });

This is how, we can do in AngularJs, but In angular7, I am not getting. Can anyone Please help.

Originally posted by @marcguyer in https://github.com/pablojim/highcharts-ng/issues/97#issuecomment-42678702