OptionalxLegend origin x-coordinate in pixels.
OptionalyLegend origin y-coordinate in pixels.
OptionalpositionAutomatically position the legend in a map corner. Manual x/y coordinates take precedence.
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.
OptionalonlyApply the legend box's background opacity (boxOpacity) only while the map is currently zoomed in (scale != 1). The legend box is transparent at the initial view and returns to its configured opacity while zoomed. Purely a box-opacity concern - does not affect legend hover interactions (e.g. hover-to-highlight), which always work regardless of zoom state.
OptionaltitlePadding between the title block and legend body.
OptionalshapeSymbol swatch width in pixels.
OptionalshapeSymbol swatch height in pixels.
OptionalshapeHorizontal gap between shape and label.
OptionalsepLength of separator lines in discrete legends.
OptionallabelLabel font size in pixels.
OptionallabelPixel offsets applied to labels.
OptionallabelCustom formatter for legend labels.
OptionaldecimalsNumber of decimal places for auto-formatted labels.
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.
OptionalmaxWhether to show dataset min/max labels when supported.
OptionalmaxText affixes for min/max labels as [minSuffix, maxSuffix].
OptionallayerOptionalsquareSize of the legend square grid in pixels.
OptionalrotationRotation angle of the legend in degrees.
Optionallabel1Label for the first variable (x-axis). Supports \\n and <br> line breaks.
Optionallabel2Label for the second variable (y-axis). Supports \\n and <br> line breaks.
Optionalbreaks1Break labels for the first variable. Omit to hide first-axis break labels.
Optionalbreaks2Break labels for the second variable. Omit to hide second-axis break labels.
OptionaltickLength of axis tick marks in pixels.
OptionalyOffset adjustments for y-axis labels.
OptionalxOffset adjustments for x-axis labels.
OptionalyOffset adjustments for y-axis title.
OptionalxOffset adjustments for x-axis title.
OptionalaxisFont size of the axis titles in pixels. Defaults to the value defined by the legend CSS.
OptionalnoExtra vertical offset for the "no data" legend item in pixels.
OptionalaxisWhether to show arrows at the end of both axes, or for each axis independently.
OptionalarrowHeight of axis arrows in pixels.
OptionalarrowWidth of axis arrows in pixels.
OptionalarrowPadding between arrow and axis label in pixels.
OptionalaxisLabels displayed at low/high ends of each axis.
OptionalshowWhether to show low/high endpoint labels on both axes, or for each axis independently.
OptionalannotationsOptional text annotations for each corner of the bivariate square.
Add text for any combination of topRight, bottomRight, bottomLeft, topLeft.
Supports line breaks using '
'/'
' or '\n'.
OptionalannotationLength of corner annotation callout lines in pixels. Can be a single number for all corners, or per-corner values.
OptionalannotationAnnotation text offsets in pixels.
Use global { x, y } or per-corner values.
OptionalannotationExtra offset applied to the leader-line endpoint where it meets the annotation label.
Use global { x, y } or per-corner values.
Configuration for bivariate choropleth map legends. Displays a 2D grid showing the relationship between two variables, with color squares representing different class combinations.