Laravel.io
<?php namespace VorlonTech\Philaseiten\Components;
use Cms\Classes\ComponentBase;
/**
* Statistic Banner Last13Months Component
*/
class StatisticBannerLast13Months extends ComponentBase
{
public function componentDetails()
{
return [
'name' => 'Statistic Banner Last13Months Component',
'description' => 'No description provided yet...'
];
}
public function onRender()
{
$dataPoints = array(
array("x"=> 10, "y"=> 41),
array("x"=> 20, "y"=> 35, "indexLabel"=> "Lowest"),
array("x"=> 30, "y"=> 50),
array("x"=> 40, "y"=> 45),
array("x"=> 50, "y"=> 52),
array("x"=> 60, "y"=> 68),
array("x"=> 70, "y"=> 38),
array("x"=> 80, "y"=> 71, "indexLabel"=> "Highest"),
array("x"=> 90, "y"=> 52),
array("x"=> 100, "y"=> 60),
array("x"=> 110, "y"=> 36),
array("x"=> 120, "y"=> 49),
array("x"=> 130, "y"=> 41)
);
$this->page['dataPoints'] = $dataPoints;
}
}