Skip to content

Instantly share code, notes, and snippets.

@fponticelli
Created February 3, 2012 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fponticelli/1732325 to your computer and use it in GitHub Desktop.
Save fponticelli/1732325 to your computer and use it in GitHub Desktop.
ReportGrid visualizations template
cache=2 days
formats=pdf,ps,png,jpg,svg,bmp,tif,html
[params]
viz[0]=pieChart
viz[1]=barChart
[defaults]
viz=pieChart
<?DOCTYPE html>
<html>
<head>
<title>Viz</title>
<script src="http://api.reportgrid.com/js/reportgrid-charts.js"></script>
<link type="text/css" href="http://api.reportgrid.com/css/rg-charts.css" rel="stylesheet">
<script type="text/javascript">
function render()
{
ReportGrid.$viz("#chart", {
data : [{browser:"chrome",count:100},{browser:"firefox",count:80}],
axes : ["browser","count"]
});
}
</script>
</head>
<body onload="render()">
<div id="chart" class="rg"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment