This is a basic example that shows charts (Pie charts) in tooltips. The canvas element is part of the tooltip HTML code (specified like regular tooltips), and then it uses the ontooltip event to run some code whhich then creates the Pie chart in the tooltip.