A basic SVG Rose chart
This goes in the documents header:
<script src="RGraph.svg.common.core.js"></script>
<script src="RGraph.svg.common.tooltips.js"></script>
<script src="RGraph.svg.rose.js"></script>
Put this where you want the chart to show up:
<div style="width: 450px; height: 400px" id="chart-container"></div>
This is the code that generates the chart:
<script>
new RGraph.SVG.Rose({
id: 'chart-container',
data: [8,6,4,3,8,6,3],
options: {
colors: [ 'rgba(255,0,0,0.5)', 'rgba(0,255,0,0.5)', 'rgba(0,0,255,0.5)' ],
backgroundGridRadialsCount: 0,
linewidth: 2,
margin: '5deg',
labels: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],
tooltips: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],
linewidth: .5
}
}).draw();
</script>