/** * The background color for the main area of the chart. Can be either a simple * HTML color string, for example: 'red' or '#00cc00', or a backgroundColor object * * @param $backgroundColor backgroundColor * @return \Chart */ public function backgroundColor($backgroundColor) { if (Helpers::is_backgroundColor($backgroundColor)) { $this->addOption($backgroundColor->toArray()); } else { $this->type_error(__FUNCTION__, 'backgroundColor'); } return $this; }