Earth Engine 即將推出
非商業用途的配額級別,以便保護共用運算資源,並確保所有使用者都能享有穩固效能。所有非商業用途的專案都必須在
2026 年 4 月 27 日前選取配額級別,否則屆時會預設為「社群」級別。在
2026 年 4 月 27 日,所有專案 (無論選取級別的日期為何) 的級別配額都會生效。
瞭解詳情。
ui.Chart.setSeriesNames
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
傳回這個圖表的副本,並更新序列名稱。
| 用量 | 傳回 |
|---|
Chart.setSeriesNames(seriesNames, seriesIndex) | ui.Chart |
| 引數 | 類型 | 詳細資料 |
|---|
this: ui.chart | ui.Chart | ui.Chart 執行個體。 |
seriesNames | Dictionary|Dictionary[String]|List|List[String]|String | 新系列名稱。如果是字串,則 seriesIndex 的系列名稱會設為 seriesNames。如果是清單,清單中索引 i 的值會做為序號 i 的標籤。如果是字典或物件,系統會將其視為從現有影集名稱到新影集名稱的對應。在最後兩種情況下,系統會忽略 seriesIndex。 |
seriesIndex | 號碼 (選填) | 要重新命名的序列索引。如果 seriesNames 是清單或字典,系統會忽略這項設定。系列從 0 開始編號。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-01-08 (世界標準時間)。
[null,null,["上次更新時間:2026-01-08 (世界標準時間)。"],[],["The `Chart.setSeriesNames` function updates series names within a chart. It accepts `seriesNames` as either a string, list, or dictionary. A string renames a specific series by `seriesIndex`. A list sets series names based on their index. A dictionary maps existing series names to new ones. The function returns a new chart (`ui.Chart`) with the updated series names, leaving the original chart untouched. The `seriesIndex` argument is used only when a single string is passed to `seriesNames`.\n"]]