ChartLegend resource type

Represents the legend in a chart.


Method Return Type Description
Get ChartLegend WorkbookChartLegend Read properties and relationships of chartLegend object.
Update WorkbookChartLegend Update ChartLegend object.


Property Type Description
overlay boolean Boolean value for whether the chart legend should overlap with the main body of the chart.
position string Represents the position of the legend on the chart. The possible values are: Top, Bottom, Left, Right, Corner, Custom.
visible boolean A boolean value the represents the visibility of a ChartLegend object.


Relationship Type Description
format WorkbookChartLegendFormat Represents the formatting of a chart legend, which includes fill and font formatting. Read-only.

JSON representation

Here is a JSON representation of the resource.

  "overlay": true,
  "position": "string",
  "visible": true,
  "format": {"@odata.type":"microsoft.graph.workbookChartLegendFormat"}