As you can see this is simple bar-graph that shows data by month. Soon I’ll release other graph to complete this package (daily, and hourly graph).
Also I will release one universal graph that plots any given data. Stay tuned for more…
HOW TO SETUP
* Download Archive
* Extract files to some remote or local directory
* Include agGraph.css file in your page
<link rel="stylesheet" type="text/css" media="screen" href="agGraph.css" />
* Download and include prototype.js file in your page
* Include graphM.prototype.js file in your page
<script type='text/javascript' src='prototype.js'></script> <script type='text/javascript' src='graphM.prototype.js'></script>
Define destination DIV, and write note title and text
<script type='text/javascript'>
var graph1={
divID:'resultDiv1',
ShowNote:'yes',
NoteTitle:'Note',
NoteText:'Little note about this graph goes here...'
}
var graph2={
divID:'resultDiv2',
ShowNote:'yes',
NoteTitle:'Note',
NoteText:'Now with multiple graphs
'
}
</script>
* Add onclick=”draw();” to some element
<input type="button" value="Generate Graph" id="startButton" onclick="draw();" />
Demo: http://dragan.yourtree.org/code/ajax-mgraph/
Download: http://dragan.yourtree.org/code/ajax-mgraph/ajax-MGraph-v096.zip
Source: http://dragan.yourtree.org/code/ajax-mgraph/

Related Listings:
No comments yet.
RSS feed for comments on this post. TrackBack URL