How to add extra data in chart.js barchart tooltip
Clash Royale CLAN TAG #URR8PPP How to add extra data in chart.js barchart tooltip I have a bar chart which i am building with chart.js I am fetching an extra data country wise on the click of the specific bar which is returning me two values I want to show the data values in the tooltip I have tried mode :label and callbacks of tooltip but not able to so please can someone have an idea how it can be done buildTheBarChart() { this.barChartService.getDataForSitesConnected(); this.barChartService.getDataForSitesConnected().then((countryValue: any) => { this.countryValue = countryValue; console.log('the response is ' , countryValue[0].countryName); this.countryNames = ; this.countOfSites = ; this.countryIdArray = ; for (let i = 0 ; i < countryValue.length; i++) { this.countryNames.push(countryValue[i].countryName); this.countOfSites.push(countryValue[i].countSites); this.countryIdArray.push(countryValue[i].co...