Workbook session Id that determines if changes are persisted or not. Optional.
Request body
In the request body, supply the values for relevant fields that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values. For best performance you shouldn't include existing values that haven't changed.
Property
Type
Description
overlay
boolean
Boolean value representing if the chart title will overlay the chart or not.
text
string
Represents the title text of a chart.
visible
boolean
A boolean value the represents the visibility of a chart title object.
Response
If successful, this method returns a 200 OK response code and updated WorkbookChartTitle object in the response body.
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new WorkbookChartTitle
{
Overlay = true,
Text = "text-value",
Visible = true,
};
var result = await graphClient.Drives["{drive-id}"].Items["{driveItem-id}"].Workbook.Worksheets["{workbookWorksheet-id}"].Charts["{workbookChart-id}"].Title.PatchAsync(requestBody);
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new WorkbookChartTitle();
$requestBody->setOverlay(true);
$requestBody->setText('text-value');
$requestBody->setVisible(true);
$result = $graphServiceClient->drives()->byDriveId('drive-id')->items()->byItemId('driveItem-id')->workbook()->worksheets()->byWorksheetId('workbookWorksheet-id')->charts()->byChartId('workbookChart-id')->title()->patch($requestBody);