Download the PHP package klikar3/rgraph without Composer
On this page you can find all versions of the php package klikar3/rgraph. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download klikar3/rgraph
More information about klikar3/rgraph
Files in klikar3/rgraph
Download klikar3/rgraph
More information about klikar3/rgraph
Files in klikar3/rgraph
Vendor klikar3
Package rgraph
Short Description Graphing with RGraph
License LGPL-3.0-or-later
Homepage http://github.com/klikar3/yii2-rgraph
Package rgraph
Short Description Graphing with RGraph
License LGPL-3.0-or-later
Homepage http://github.com/klikar3/yii2-rgraph
Please rate this library. Is it a good library?
Informations about the package rgraph
yii2-RGraph
oder
yii2 extension for the RGraph graphing library, based on robregonm's work
RGraph is available under GPL
http://www.rgraph.net/open-source
Example:
---- controller: php
---- View:
html
<div class="site-index">
<div class="body-content">
<h3></h3> <?= Html::a('Ressources',Url::toRoute(['res_cpu', 'id' => $id])); ?>
<?= 'Refreshed on '.date('d.m.Y H:i:s'); ?>
<div class="row">
<?= RGraphLine::widget([
'data' => !empty($dataset) ? array_map('intval',ArrayHelper::getColumn($dataset,'value')) : [ 0 ],
'allowDynamic' => true,
'allowTooltips' => true,
'allowContext' => true,
'options' => [
'height' => '600px',
'width' => '800px',
'colors' => ['blue'],
'filled' => true,
// 'spline' => true,
'clearto' => ['white'],
'labels' => !empty($dataset) ? array_map(function($val){return substr($val,1,15);},
array_column(array_chunk(ArrayHelper::getColumn($dataset,'CaptureDate'),count($dataset)/10),0)
) : [ 'No Data' ],
'tooltips' => !empty($dataset) ? ArrayHelper::getColumn($dataset,'value') : [ 'No Data' ],
'numxticks' => 10,
'textAngle' => 45,
'textSize' => 8,
'gutter' => ['left' => 45, 'bottom' => 50, 'top' => 50],
'title' => $cntr,
'titleSize' => 12,
'titleBold' => false,
'tickmarks' => 'none',
'ymax' => 100,
'backgroundColor' => 'Gradient(red:orange:white)',
'backgroundGridAutofitNumvlines' => 10,
'key' => ['keyInteractive' => true],
'contextmenu' => [
['24h', new JsExpression("function go() {window.location.assign(\"".Url::toRoute(['detail','cntr' => $cntrs[0], 'id' => $id, 'days' => 1 ])."\");}") ],
['7 days',new JsExpression("function go() {window.location.assign(\"".Url::toRoute(['detail','cntr' => $cntrs[0], 'id' => $id, 'days' => 7 ])."\");}") ],
['32 days',new JsExpression("function go() {window.location.assign(\"".Url::toRoute(['detail','cntr' => $cntrs[0], 'id' => $id, 'days' => 32 ])."\");}") ],
['1 year', new JsExpression("function go() {window.location.assign(\"".Url::toRoute(['detail','cntr' => $cntrs[0], 'id' => $id, 'days' => 366 ])."\");}") ],
['All', new JsExpression("function go() {window.location.assign(\"".Url::toRoute(['detail','cntr' => $cntrs[0], 'id' => $id, 'days' => 9999 ])."\");}") ],
],
]
]);
? >
</div>
</div>
</div>
All versions of rgraph with dependencies
PHP Build Version
Package Version
The package klikar3/rgraph contains the following files
Loading the files please wait ....