<?php
# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-php
require_once('vendor\autoload.php');
use \Aspose\Cells\Cloud\Api\CellsApi;
use \Aspose\Cells\Cloud\Request\PostWorksheetChartTitleRequest;

class Chart {

	public $instance;

	public function __construct() {
		$this->instance =  new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl"));
	}

	public function postWorksheetChartTitle() {
        $remoteFolder = "TestData/In";

        $localName = "Book1.xlsx";
        $remoteName = "Book1.xlsx";

        $title = new \Aspose\Cells\Cloud\Model\Title();
        $title->setIsVisible('true' ); 
        $request = new PostWorksheetChartTitleRequest();
        $request->setName( $remoteName);
        $request->setSheetName( "Sheet4");
        $request->setChartIndex( 0);
        $request->setTitle( $title);
        $request->setFolder( $remoteFolder);
        $request->setStorageName( "");
        $this->instance->postWorksheetChartTitle($request);
	}
}

$instance = new Chart();
$instance->postWorksheetChartTitle();

?>