prop(array('type', 'width', 'height', 'responsive', 'graphID')); if(empty($graphID)) $graphID = uniqid(); return zui::graph(set::_id('zin_graph_' . $graphID), set::type($type), set::responsive($responsive), set::_style(array('width' => is_int($width) ? "{$width}px" : $width, 'height' => is_int($height) ? "{$height}px" : $height)), set($this->getRestProps())); } }