I have 2 questions.
1. How can I put in a function as a value to the datalabels.formatter function rather than defining the function right there? I want to use it like below:
Code: Select all
formatter: this.myCustomFunction();
2. I would like to know the best practice to create a chart in Highcharts which makes my code more reusable and robust in Angular. Should I create the chartOptions in a service altogether and create a data modal for it too.
Link to the stackblitz: https://stackblitz.com/edit/angular-ivy ... mponent.ts