public static function draw($type, $data = null) { $result = new self($type, $data); $result->checkLocale(); return $result->chart; }