Enum Position
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Pozycja
Lista pozycji legendy na wykresie.
Aby wywołać wyliczenie, wywołaj jej klasę nadrzędną, nazwę i właściwość. Na przykład:
Charts.Position.TOP
.
Właściwości
Właściwość | Typ | Opis |
TOP | Enum | Nad wykresem. |
RIGHT | Enum | Po prawej stronie wykresu. |
BOTTOM | Enum | Pod wykresem |
NONE | Enum | Nie zostanie wyświetlona żadna legenda. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 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. |"]]