Chartjs-How to log the callbacks (object) for Chart.js tooltips? (v3.0)

1👍

Instead of stringifying the context just pass the variable and print that in the console, this way it’s way more usable since it contains a lot of info so you can click through it without it being a big mess.

If you really want to print it as a string you can look at this answer: How can I print a circular structure in a JSON-like format?

Leave a comment