A straight-forward demo of a Pie chart with tooltips. Remember that by
default the SVG highlights for tooltips are set with the
pointer-events
CSS property set to none
.
<script src="RGraph.svg.common.core.js"></script> <script src="RGraph.svg.common.tooltips.js"></script> <script src="RGraph.svg.pie.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>Put this where you want the chart to show up:
<div style="width: 650px; height: 350px" id="chart-container"></div>This is the code that generates the chart: