ng2-highcharts icon indicating copy to clipboard operation
ng2-highcharts copied to clipboard

How to update chart series or access Highcharts object

Open mluis opened this issue 6 years ago • 2 comments

I'm trying to update highcharts data series dynamically with parallel HTTP requests, although can't find out how to update the series neither how to access the main Highcharts object, just the chartOptions object.

There is no documentation on this. Would you mind giving support for these docs?

Thank you.

mluis avatar Apr 10 '18 11:04 mluis

If I import Highcharts I get the Error 16.

mluis avatar Apr 10 '18 11:04 mluis

Took a reference from here

@ViewChild(Ng2Highcharts)
  chartElement: Ng2Highcharts;

...

this.chartElement.draw(this.datexChartOptions);

Managed to make it work, although the colors of the series are the same..

mluis avatar Apr 10 '18 11:04 mluis