dev-master
9999999-dev https://github.com/d4rkstar/yii2-graphitejsYii 2 Graphitejs widget
BSD-3-Clause
extension yii2 widget graphitejs
Yii 2 Graphitejs widget
This widget is a wrapper around GraphiteJS Jquery plugin., (*1)
GraphiteJS Plugin allow to easily make graphs and update them on the fly using Graphite's Render Url API., (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
$ php composer.phar require d4rkstar/yii2-graphitejs "dev-master"
or add, (*5)
"d4rkstar/yii2-graphitejs": "dev-master"
to the require
section of your composer.json
file., (*6)
... = Graphitejs::widget([ 'options' => [ 'id'=>'serverLoadGraph', ], 'pluginOptions'=>[ 'url'=>'http://localhost/render/', 'from'=>'-24hours', // replace with your targets 'target'=>[ 'server.load.load1', 'server.load.load5', 'server.load.load15' ], 'width'=>300, 'height'=>300, ] ]); ?>
For more usage, look at GraphiteJS examples and Graphite's Render Url API., (*7)
Yii 2 Graphitejs widget
BSD-3-Clause
extension yii2 widget graphitejs