Announcement: On November 13, 2024, all users will need to use a Cloud project in order to access Earth Engine. After this date, continued individual access without a Cloud project will require an exception.
Stay organized with collections
Save and categorize content based on your preferences.
Returns a copy of this chart with updated series names.
Usage
Returns
Chart.setSeriesNames(seriesNames, seriesIndex)
ui.Chart
Argument
Type
Details
this: ui.chart
ui.Chart
The ui.Chart instance.
seriesNames
Dictionary|Dictionary
New series names. If it's a string, the name of the series at seriesIndex is set to seriesNames. If it's a list, the value at index i in the list is used as a label for series number i. If it's a dictionary or an object, it's treated as a map from existing series names to new series names. In the last two cases, seriesIndex is ignored.
seriesIndex
Number, optional
The index of the series to rename. Ignored if seriesNames is a list or dictionary. Series are 0-indexed.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["The `setSeriesNames` function updates the names of chart series, returning a modified copy of the chart."],["Series names can be provided as a single string, a list of names, or a dictionary mapping old names to new ones."],["The `seriesIndex` argument specifies the series to rename when using a single string name; it's ignored when using lists or dictionaries for names."]]],[]]