Custom Legend Items

The Drawing API enables the developer to create any custom shape for the legend items. To do so, pass a custom function to the visual property of the LegendItemComponent. The following example demonstrates how a custom label can be drawn in the shape of its corresponding series.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?