RGraph is a charts library that uses Javascript and HTML5 to draw and supports over twenty different types of charts. Using the new HTML5 canvas tag, RGraph creates these charts inside the web browser, meaning quicker pages and less web server load. This leads to smaller page sizes and faster websites.
Download RGraph library and decompress it to protected/vendors/rgraph (you can change this path with the rGraphPath parameter)
Download this extension wherever you want (in this example, we'll use protected/widgets)
$this->widget('application.widgets.rgraph.RGraphBar', array( 'data' => array(1, 3, 5, 7, 2, 4, 6, 10, 8, 9, 12, 11), 'options' => array( 'chart' => array( 'gutter' => array( 'left' => 35, ), 'colors' => array('red'), 'title' => 'A basic chart', 'labels' => array( 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ), ) ) ));
Total 4 comments
Very useful, thank you.
@jowen I have no problems to access RGraph page. The last stable RGraph version is: http://www.rgraph.net/downloads/RGraph2_2012-03-28-stable.zip
Can upload the RGraph library through here? Thanks. The website seem cant loading. www.rgraph.net
Like many graph libraries, it's not free for commercial purposes. Quote:
RGraph is free to use on non-commercial websites such as personal blogs, educational, or charity sites - you don't need to buy a license - only link to the RGraph website on your own site. Donations of any size are always gratefully received! Go here for details about a commercial/government license or donating.
Leave a comment
Please login to leave your comment.