src/DebugBar/JavascriptRenderer.php
protected function getAddDatasetCode($requestId, $data, $suffix = null)
    {
        $js = sprintf("%s.addDataSet(%s, \"%s\"%s);\n",
            $this->variableName,
            json_encode($data),
            $requestId,
            $suffix ? ", " . json_encode($suffix) : ''
        );
        return $js;
    }
protected function getAddDatasetCode($requestId, $data, $suffix = null)
    {
        $js = sprintf("%s.addDataSet(%s, \"%s\"%s);\n",
            $this->variableName,
            json_encode($data),
            $requestId,
            $suffix ? ", " . json_encode($suffix) : ''
        );
        return $js;
    }
protected function getAddDatasetCode ( $ requestId , $ data , $ suffix = null ) { $ js = sprintf ( "%s.addDataSet(%s, \"%s\"%s);\n" , $ this -> variableName , json_encode ( $ data ) , $ requestId , $ suffix ? ", " . json_encode ( $ suffix ) : '' ) ; return $ js ; }
Returns the js code needed to add a dataset

@param string $requestId
@param array $data
@param mixed $suffix
@return string
Returns the js code needed to add a dataset