Enum Position
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
位置
這個圖表中的圖例位置列舉。
如要呼叫列舉,您可以呼叫其父項類別、名稱和屬性。例如
Charts.Position.TOP
。
屬性
屬性 | 類型 | 說明 |
TOP | Enum | 在圖表上方。 |
RIGHT | Enum | 圖表右側。 |
BOTTOM | Enum | 圖表下方。 |
NONE | Enum | 不會顯示圖例。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\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. |"]]