The interactive key has been re-implemented as of June 2013 and added to more chart types.
This goes in the documents header:<script src="RGraph.common.core.js"></script> <script src="RGraph.common.dynamic.js"></script> <script src="RGraph.common.key.js"></script> <script src="RGraph.drawing.rect.js"></script> <script src="RGraph.radar.js"></script>Put this where you want the chart to show up:
<canvas id="cvs" width="450" height="300">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
window.onload = function ()
{
var radar = new RGraph.Radar({
id: 'cvs',
data: [
[5,6,3,5,4,5],
[8,6,7,8,9,9,6]
],
options: {
colors: ['rgba(0,0,0,0)'],
strokestyle: ['red', 'black'],
linewidth: 3,
key: ['Richard','Dave'],
keyColors: ['red', 'black'],
keyInteractive: true
}
}).draw();
};
</script>
<Back