public function __construct() { parent::__construct(); array_map(function ($i) { $this->count[$i] = ['label' => $i, 'value' => rand(1234, 5678)]; }, $this->buzzwords); }
public function __construct() { parent::__construct(); $this->points = []; for ($i = 0; $i < 10; $i++) { $this->points[] = ['x' => $i, 'y' => rand(0, 50)]; } $this->lastX = $i; }