public function init() { parent::init(); $this->data = new BarData(); $this->data->labels = []; $this->data->datasets = []; }