function __construct($bounds) { $this->bound = Boundary::copyOrDefault($bounds); $this->title = ['text' => 'Диаграмма', 'color' => Color::getDefault(), 'font' => Font::getDefault(), 'margin' => ['top' => 10, 'bottom' => 10]]; $this->values = ['bgcolors' => [Color::getDefault()], 'fgcolors' => [Color::getDefault()], 'font' => Font::getDefault(), 'labels' => TRUE]; $this->bgcolor = new Color(255, 255, 255); }
function __construct(Boundary $bound, Color $bgcolor = NULL) { $this->bound = Boundary::copyOrDefault($bound); $this->background($bgcolor) or $this->bgcolor = Color::getDefault(); }