I have a chart.js chart that graphs data. I want to have a tooltip that when hovered over it has some commentary say "Here is (1,1)".
I have already searched through their documentation and have found that the only customization you could have for tooltips was colored and that applies to every tooltip.
let stockGraph = new Chart(myChart, {
type:'line', //bar, horizontalBar, pie, line, donut, radar, polarArea
data:{
labels:["Hi", "I", "love"],
datasets:[{
data:[1,2,3],
fill: false,
lineTension: 0,
}]
},
options:{
title:{
display:true,
text:"Please enter a stock",
fontSize: 25,
},
legend:{
display:false,
},
tooltips:{
enabled:true,
},
}
});
My expected result is to be able to hover over Hi,1 and have the tooltip read "this is (Hi,1)" then hover over I,2 and have the tooltip read "This is (I,2)" is there a way to accomplish this with chart.js? Thank you so much! The other question about chart.js documentation didn't answer my question because it does not show how to show a specific coordinate.