Show marker in legend label

1 Answer 191 Views
Charts Drawing Labels 
Vladimir
Top achievements
Rank 1
Vladimir asked on 19 May 2021, 09:43 PM

Hi,

Is it possible to add line marker to the legend, so that if we choose rectangle for marker style we get a little rectangle in the legend?

I can alter the text and color by customizing "labels" prop but it still shows just line, no matter what marker type is selected.

 

Regards,

Vladimir

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Krissy
Telerik team
answered on 20 May 2021, 11:20 AM

Hi Vladimir,

The visuals (markers) in the legend can be customized using the visual property of ChartLegendItem: https://www.telerik.com/kendo-react-ui/components/charts/api/ChartLegendItemProps/#toc-visual 

The drawing documentation can be very helpful with custom drawings that can be used for the visual property:
https://www.telerik.com/kendo-react-ui/components/drawing/ 


Hope this is what you are looking for.

Regards,
Krissy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Charts Drawing Labels 
Asked by
Vladimir
Top achievements
Rank 1
Answers by
Krissy
Telerik team
Share this question
or