OptionalxLegend origin x-coordinate in pixels.
OptionalyLegend origin y-coordinate in pixels.
OptionalwidthLegend width in pixels.
OptionalheightLegend height in pixels.
OptionaltitleLegend title text.
OptionalsubtitleLegend subtitle text.
OptionaltitleLegend title font size in pixels.
OptionalboxInner spacing around legend content.
OptionalboxBackground opacity of the legend box.
OptionalshapeSymbol swatch width in pixels.
OptionalshapeSymbol swatch height in pixels.
OptionalshapeHorizontal gap between shape and label.
OptionallabelLabel font size in pixels.
OptionalorientationLegend layout direction.
OptionalascendingSort legend entries in ascending order when true.
OptionalnoWhether to display the no-data legend item.
OptionalnoLabel used for no-data legend item.
OptionalnoVertical gap before the no-data swatch in pixels.
OptionalnoWidth of the no-data swatch in pixels.
OptionalnoHeight of the no-data swatch in pixels.
OptionaltitlePadding between the legend title and the legend body in pixels.
OptionallabelLabel style for discrete legends.
OptionalsepLength of the separator line in pixels for discrete legends.
OptionaltickLength of threshold tick marks in pixels.
OptionaldecimalsNumber of decimal places for auto-formatted labels. Auto-detected when undefined.
OptionallabelOffset adjustments for labels.
OptionallabelCustom formatter for legend labels.
OptionallabelsUser-defined labels for classes in discrete legends.
OptionalhistogramHistogram legend configuration. Set to null/undefined to disable histogram mode.
OptionalpointLabel shown at the divergence point for diverging legends.
OptionalpointClass index/value position used for diverging legends.
OptionalpointExtra padding around the divergence marker in pixels.
OptionaldivergingExplicit diverging guide line length in pixels.
OptionaldivergingExplicit diverging arrow length in pixels.
OptionallowLabel shown at the low end of continuous legends.
OptionalhighLabel shown at the high end of continuous legends.
OptionalticksNumber of ticks to show on continuous legends. Use 0 to disable.
OptionaltickExplicit tick values for continuous legends.
OptionaltickExplicit tick labels for continuous legends.
OptionalhighlightPixel tolerance used when hovering continuous legends to highlight nearby regions.
OptionalmaxWhether to show dataset min/max labels where supported.
OptionalmaxText affixes for min/max labels as [minSuffix, maxSuffix].
OptionalmaxLength of min/max tick marks in pixels. Defaults to tickLength when omitted.
OptionalmaxWhether to append region names to min/max labels.
Configuration for choropleth map legends. Supports discrete, continuous, diverging, and histogram legend variants.