Hi,
Thanks for your question,
You can change Highcharts chart
chartOptions options in Angular hookups such as
ngOnChanges().
Code: Select all
ngOnChanges(changes: SimpleChanges) {
this.updateFlag = false;
this.chartOptions = {
title: {
text: this.title.text,
},
};
if (!changes.title.firstChange) {
console.log(changes.title.currentValue);
}
}
This hook works in such a way that it only reads with the data entered by @Input.
As far as your problem is concerned there is too little information to diagnose. You can either recreate the case in the online code editor or describe it in more detail, although hopefully, the example below will suggest you how to use Angular hooks in Highcharts.
ngOnChanges() hook is invoked immediately after the default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.
.
Also, you can see how to build Angular projects with the official Highcharts Angular wrapper.
https://github.com/highcharts/highchart ... t-instance
Live demo:
https://stackblitz.com/edit/highcharts- ... mponent.ts
if you have more questions do not hesitate to ask,
Best regards.