Skip to content

Instantly share code, notes, and snippets.

@tonysm
Created September 6, 2012 13:15
Show Gist options
  • Save tonysm/3656136 to your computer and use it in GitHub Desktop.
Save tonysm/3656136 to your computer and use it in GitHub Desktop.
rgraph issue
<html>
<head>
<title>Test rgraph</title>
<script type="text/javascript" src="rgraph/RGraph.common.core.js" ></script>
<script type="text/javascript" src="rgraph/RGraph.common.dynamic.js" ></script>
<script type="text/javascript" src="rgraph/RGraph.bar.js" ></script>
<script type="text/javascript" src="rgraph/RGraph.line.js" ></script>
<script type="text/javascript">
window.onload = function ()
{
var barData = [1, 2, 2, 2, 3, 4, 2, 3, 3, 4, 3, 1],
lineData = [2, 2, 3, 0, 2, 3, 5, 4, 6, 5, 2, 3];
var bar = new RGraph.Bar('radar1', barData);
bar.Set('chart.gutter.top', 35);
bar.Set('chart.colors', ['#93BEDC']);
var line = new RGraph.Line('radar1', lineData);
line.Set('chart.linewidth', 3);
line.Set('chart.colors', ['#15428B']);
line.Set('chart.tickmarks', 'circle');
line.Set('chart.noaxes', true);
var combo = new RGraph.CombinedChart(bar, line);
combo.Draw();
}
</script>
</head>
<body>
<canvas width="650" height="400" id="radar1">[No canvas support]</canvas>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment