<?php require_once('vendor\autoload.php'); use \Aspose\Cells\Cloud\Api\CellsApi; use \Aspose\Cells\Cloud\Request\PostWorksheetChartRequest; $cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"),"v3.0",getenv("CellsCloudApiBaseUrl")); $remoteFolder = "TestData/In"; $localName = "Book1.xlsx"; $remoteName = "Book1.xlsx"; $chart = new \Aspose\Cells\Cloud\Model\Chart(); $chart->setShowLegend('true' ); $chart->setShowDataTable('true' ); CellsApiTestBase::ready( $this->instance,$localName ,$remoteFolder . "/" . $remoteName , ""); $request = new PostWorksheetChartRequest(); $request->setName( $remoteName); $request->setSheetName( "Sheet4"); $request->setChartIndex( 0); $request->setChart( $chart); $request->setFolder( $remoteFolder); $request->setStorageName( ""); $$cellsApi->postWorksheetChart($request);