Legends
The Legends component in REAVIZ provides a visual representation of the data series in a chart. Legends help users understand what each color or symbol in the chart represents.
Types supported by reaviz:
- Discrete Legend: Displays individual entries for each data series. REAVIZ does not include legends by default to keep the library modular, but you can add discrete legends as needed.
- Sequential Legend: Useful for categorical charts such as heatmaps, supporting both vertical and horizontal layouts.
Where to use:
- Clarify Data Series: Ideal for providing clear labels and color codes for different data series in a chart.
- Enhance Readability: Useful for improving the readability and interpretation of complex charts.
- Categorical Data Representation: Great for representing categorical data in charts like heatmaps.
Examples
Descrete
Sequential
API
DiscreteLegendΒ
DiscreteLegendEntryΒ
DiscreteLegendSymbolΒ
| Name | Type | Default |
|---|---|---|
color | stringColor for the symbol set by the | |
className | stringCSS Class names. |
SequentialLegendΒ
Last updated on