A Pie chart with tooltips
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>
<style>
.RGraph_tooltip {
padding-left: 0 !important;
padding-right: 0 !important;
padding: 10px !important;
font-size: 16pt !important;
font-weight: bold !important;
text-align: center !important;
}
&ly;/style>
Put this where you want the chart to show up:
<canvas id="cvs" width="350" height="250">
[No canvas support]
</canvas>
This is the code that generates the chart: