An SVG Line chart with labelsAbove
This goes in the documents header:
<script src="RGraph.svg.common.core.js"></script>
<script src="RGraph.svg.line.js"></script>
Put this where you want the chart to show up:
<div style="width: 750px; height: 300px" id="chart-container"></div>
This is the code that generates the chart:
<script>
new RGraph.SVG.Line({
id: 'chart-container',
data: [0.05,0.06,0.01,0.06,0.09,0.02,0.07],
options: {
linewidth: 5,
hmargin: 0,
title: 'A basic linechart',
gutterLeft: 50,
gutterBottom: 50,
yaxisDecimals: 2,
tickmarksStyle: 'circle',
tickmarksLinewidth: 5,
tickmarksSize: 7,
xaxisLabels: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],
shadow: true
}
}).trace();
</script>
« Back