public function add($label, $data = [], $fillColor = '')
{
if (is_array($label)) {
if (Arr::isAssoc($label)) {
$this->data[] = $label;
} else {
foreach ($label as $item) {
call_user_func_array([$this, 'add'], $item);
}
}
return $this;
}
$this->data['datasets'][] = ['label' => $label, 'data' => $data, 'fillColor' => $fillColor];
return $this;
}