Skip to main content

Module legend

Module legend 

Source

Structs§

LegendConfig
Legend layout configuration.
LegendItem
A positioned legend item.
LegendLayoutResult
Result of legend layout computation.

Enums§

LegendAlignment
LegendMark
Legend symbol type — matches the JS renderSymbol() function.

Functions§

calculate_legend_layout
Compute legend layout for the given labels and colors.
generate_legend_elements
Generate legend SVG elements for the given series. Computes layout, then renders symbol + label elements for each visible item.