public function setChartTitle($chartIndex, $strXML)
    {
        //check whether workshett name is set or not
        if ($this->worksheetName == '')
            throw new Exception('Worksheet name not specified');
        
        if (!isset($chartIndex))
            throw new Exception('Chart Index not specified');
        
        if ($strXML == '')
            throw new Exception('XML data not specified');
        
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() . '/worksheets/' . $this->worksheetName . '/charts/' . $chartIndex . '/title';
        
        $signedURI = Utils::sign($strURI);
        
        $response = Utils::processCommand($signedURI, 'PUT', 'xml', $strXML);
        
        $xml = simplexml_load_string($response);
        
        if ($xml->Status == 'OK')
            return true;
        else
            return false;
    }
public function setChartTitle($chartIndex, $strXML)
    {
        //check whether workshett name is set or not
        if ($this->worksheetName == '')
            throw new Exception('Worksheet name not specified');
        
        if (!isset($chartIndex))
            throw new Exception('Chart Index not specified');
        
        if ($strXML == '')
            throw new Exception('XML data not specified');
        
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() . '/worksheets/' . $this->worksheetName . '/charts/' . $chartIndex . '/title';
        
        $signedURI = Utils::sign($strURI);
        
        $response = Utils::processCommand($signedURI, 'PUT', 'xml', $strXML);
        
        $xml = simplexml_load_string($response);
        
        if ($xml->Status == 'OK')
            return true;
        else
            return false;
    }
public function setChartTitle ( $ chartIndex , $ strXML ) { //check whether workshett name is set or not if ( $ this -> worksheetName == '' ) throw new Exception ( 'Worksheet name not specified' ) ; if ( ! isset ( $ chartIndex ) ) throw new Exception ( 'Chart Index not specified' ) ; if ( $ strXML == '' ) throw new Exception ( 'XML data not specified' ) ; $ strURI = Product :: $ baseProductUri . '/cells/' . $ this -> getFileName ( ) . '/worksheets/' . $ this -> worksheetName . '/charts/' . $ chartIndex . '/title' ; $ signedURI = Utils :: sign ( $ strURI ) ; $ response = Utils :: processCommand ( $ signedURI , 'PUT' , 'xml' , $ strXML ) ; $ xml = simplexml_load_string ( $ response ) ; if ( $ xml -> Status == 'OK' ) return true ; else return false ; }
Set Chart Title in Excel Worksheet

@param integer $chartIndex Index of the chart.
@param xml $xml Data in xml format.

@return boolean
@throws Exception
Set Chart Title in Excel Worksheet