Enum Position
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
位置
枚举图表中图例位置。
若要调用枚举,您可以调用其父类、名称和属性。例如
Charts.Position.TOP
。
属性
媒体资源 | 类型 | 说明 |
TOP | Enum | 在图表上方。 |
RIGHT | Enum | 图表的右侧。 |
BOTTOM | Enum | 在图表下方。 |
NONE | Enum | 未显示图例。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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. |"]]