Skip To Content ArcGIS for Developers Sign In Dashboard

Web Map Specification

Legend Options

Options available for the legend.

Referenced by: ClassBreaks Renderer, ColorInfo Visual Variable, Dot Density Renderer, RotationInfo Visual Variable, SizeInfo Visual Variable, TransparencyInfo Visual Variable, UniqueValue Renderer

Properties

Property Details
dotLabel The text that should be displayed in the legend for each dot. This will display next to the number 1. If not present, it will be a localized string for the word 'Dot'.
order Indicates the order in which the legend is displayed.
If property is present, must be one of the following values:
  • ascendingValues
  • descendingValues
showLegend Indicates whether to show the color/size/opacity ramp in the legend. This property is not available directly under uniqueValueRenderer and/or classBreaksRenderer.
title The title of the legend.
unit Indicates the unit of the data being visualized in a dotDensity renderer. This will display next to the dot value in the title of the legend.

Feedback on this topic?