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.
Requirements ¶
- RGraph
- YiiFramework 1.1.x (Tested on 1.1.10)
Usage ¶
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'
),
)
)
));
Watch out for RGraph license
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.
RGraph library
Can upload the RGraph library through here? Thanks. The website seem cant loading. www.rgraph.net
RGraph download link
@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
Thank you
Very useful, thank you.
Installtion
Hi Friends,
can any one install this extesion.when i install it's show me the error..
The asset "/var/www/redkey/protected/vendors/RGraph/css" to be published does not exist.
Please help me...
Error Resolved
Hi Friends,
please make sure you can check the spelling on protected folder widgets or widget
otherwise you can fetch the error..
Alias "application.widgets.rgraph.RGraphBar" is invalid. Make sure it points to an existing PHP file and the file is readable.
Cool you solved it
Thanks for letting us know you solved your issue @Ankit
Feel free to report any bug
create a thermometer using rgraph extesion..
Hi Friends,
i will create the therometer widgets
http://www.rgraph.net/examples/thermometer.html
using Rgraph extesion..
so please check it..
http://www.yiiframework.com/wiki/555/create-thermometer-using-rgraph/
if you have any query please freely to ask..
and thanks..robregonm
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.