SetThemeClassLabels()

Summary

Change the labels for classes in a color, pattern, dot, or chart theme.

Syntax

SetThemeClassLabels(string theme_name, array labels)

Argument Contents
theme_name The name of the theme
labels An array of new class labels (strings), starting with the Other class if it exists

Notes

  • SetThemeClassLabels() changes the labels that are used in the map legend to identify classes in a theme.

  • The original labels are generated automatically.

Example

thm = CreateTheme("Population Theme", "State.Population", "Quantiles", 3, )
lbls = {"No Data Available", "Low", "Medium", "High"}
SetThemeClassLabels(thm, lbls)

Error Codes

Error Meaning
NotFound The specified theme does not exist

See Also

Function Summary
GetThemeClassLabels() Gets the class labels of a color or pattern theme
SetThemeClassLabel() Changes the label for a class in a color, pattern, dot, or chart theme
GetThemeClasses() Gets information about the classes of a color or pattern theme
GetTheme() Gets information about a theme