score:1

Accepted answer

Since you are initialising chartOptions directly in the component class, the input title will not work.

You need to initialise the chartOptions in ngOnInit lifecycle method. I have made a sample stackblitz to show this.

https://stackblitz.com/edit/highcharts-angular-basic-line-gaekp1?file=src%2Fapp%2Ftest.component.ts


Related Query

More Query from same tag