A Rose chart using both the Grow effect and the Roundrobin effect
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: [],
options: {
backgroundGridRadialsCount: 0
}
}).draw();
new RGraph.SVG.Rose({
id: 'chart-container',
data: [[9,1,5],[3,8,6],[2,1,1],[4,6,5],[3,5,2],[5,6,3],[8,4,6]],
options: {
colors: [ 'rgba(255,0,0,0.5)', 'rgba(0,255,0,0.5)', 'rgba(0,0,255,0.5)' ],
backgroundGrid: false,
linewidth: 2,
amargin: '5deg',
labels: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],
tooltips: [
'Mon','Tue','Wed',
'Mon','Tue','Wed',
'Mon','Tue','Wed',
'Mon','Tue','Wed',
'Mon','Tue','Wed',
'Mon','Tue','Wed',
'Mon','Tue','Wed'
],
linewidth: .5
}
}).roundrobin().grow();
</script>