src/Classes/BaseChart.php
public function setScriptAttribute(string $key, string $value)
    {
        $this->scriptAttributes[$key] = $value;

        return $this;
    }
public function setScriptAttribute(string $key, string $value)
    {
        $this->scriptAttributes[$key] = $value;

        return $this;
    }
public function setScriptAttribute ( string $ key , string $ value ) { $ this -> scriptAttributes [ $ key ] = $ value ; return $ this ; }
Sets an HTML attribute the the script tag of the chart.

@param string $key
@param string $value

@return self
Sets an HTML attribute the the script tag of the chart .