A Pie chart showing the new (version 5.22) formatted tooltips feature

Formatted tooltips are a new feature in version 5.22 and make it super-easy to have unique tooltips but using just one specification in your configuration (as shown below).

[No canvas support]

This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.dynamic.js"></script>
<script src="RGraph.common.tooltips.js"></script>
<script src="RGraph.pie.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs1" width="350" height="350">[No canvas support]</canvas>
<canvas id="cvs2" width="350" height="350">[No canvas support]</canvas>
This is the code that generates the chart: