How can I customize an information bubble in React-chartjs2 when clicking a point?

57 views Asked by At

Using the example from there site for a Line graph, it seems to support base information when hovering a point. Does anyone know how to customize this to using your own information? For example, in the example it says "Dataset x: number", how can I change this to be, "On [X Value (The Date)], You were [Down/UP] Y value dollars".

1

There are 1 answers

0
memelord23 On

Took a while to find on the documentation because the word I needed to know was "tooltip".

Found here, https://www.chartjs.org/docs/latest/samples/tooltip/html.html