Enum Position
Stay organized with collections
Save and categorize content based on your preferences.
Position
An enumeration of legend positions within a chart.
To call an enum, you call its parent class, name, and property. For example,
Charts.Position.TOP
.
Properties
Property | Type | Description |
TOP | Enum | Above the chart. |
RIGHT | Enum | To the right of the chart. |
BOTTOM | Enum | Below the chart. |
NONE | Enum | No legend is displayed. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eCharts.Position\u003c/code\u003e enumerates the allowed positions for a chart legend.\u003c/p\u003e\n"],["\u003cp\u003eLegend positions include \u003ccode\u003eTOP\u003c/code\u003e, \u003ccode\u003eRIGHT\u003c/code\u003e, \u003ccode\u003eBOTTOM\u003c/code\u003e, and \u003ccode\u003eNONE\u003c/code\u003e, controlling legend placement or its absence.\u003c/p\u003e\n"],["\u003cp\u003eTo specify a legend position, use the syntax \u003ccode\u003eCharts.Position.[Property]\u003c/code\u003e, such as \u003ccode\u003eCharts.Position.TOP\u003c/code\u003e for placing the legend above the chart.\u003c/p\u003e\n"]]],[],null,["# Enum Position\n\nPosition\n\nAn enumeration of legend positions within a chart.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCharts.Position.TOP`. \n\n### Properties\n\n| Property | Type | Description |\n|----------|--------|----------------------------|\n| `TOP` | `Enum` | Above the chart. |\n| `RIGHT` | `Enum` | To the right of the chart. |\n| `BOTTOM` | `Enum` | Below the chart. |\n| `NONE` | `Enum` | No legend is displayed. |"]]