Premium
The Chart legend displays the name of the configured data series.
To customize the legend, use the ChartLegend configuration component.
The following example demonstrates how to configure the position and orientation of the Chart legend.
Change Theme
Theme
Loading ...
Hiding the LegendIf you set the series names, the Chart displays a default legend.
The following example demonstrates how to hide the legend by using its visible
property.
Change Theme
Theme
Loading ...
Configuring the Legend ItemsThe Legend Item types and settings are derived from the series configuration. For additional configuration, use the series legendItem
property.
The following example shows the different Legend Item types:
Change Theme
Theme
Loading ...
Clicking Legend ItemsClicking the legend items triggers the onLegendItemClick
event which can be used to toggle the visibility of the clicked series. When onLegendItemClick
is not handled, the Chart itself toggles the series visibility.
Change Theme
Theme
Loading ...
Customizing the PositionYou can remove the legend from the flow and absolutely position it by setting the position to custom
and configuring the offsetX
and offsetY
options.
Change Theme
Theme
Loading ...
Setting a TitleThe Chart legend section can be configured to hold a title with customizable layout and content. To define a title, use the ChartLegendTitle
component.
Change Theme
Theme
Loading ...
Suggested LinksRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4