So I have created a line chart using Chart.js but I want to add some custom text to each individual tooltip.
I want to be able to change the "Player 2: 29" text to "Custom Name: 29" and the "Player 2: 44" to "Different Custom Name: 29".
I pass a json object to the view which is where I get the point values (which works fine), but the json object also has a string value which is what I want to use to in place of "Custom Name".
More detail on scenario:
- The green line represents one team and the red line is the other team.
- There are four players in a team
- Each point on the chart represents a players score which is why I want to be able to display the persons name along with their score in the tooltip.
- Each tooltip would contain 2 different players names and score.
Is there any way to do this?
Thanks for taking the time to read this far.

