[Chartjs]-Ng2-charts tooltip and legend stopped working

4πŸ‘

βœ…

It turned out that binding the dataset of the chart to a method is a bad idea. The getJoinedChartData() method took some data of one of the patient objects of my application and returned it as an array that could be used with the chart. Instead I created a variable in my component and assigned the array to that, then bound the dataset to that variable. Everything is fine now.

Leave a comment