This is a migrated thread and some comments may be shown as answers.

Change appearance of specific item on chart legend

2 Answers 226 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Christophe
Top achievements
Rank 1
Christophe asked on 25 Apr 2017, 08:10 PM

Hello

On my column chart I have prevented hiding default behavior when clicking on a legend item. Instead of that I highlight the serie with chart.toggleHighlight method. Now I'd like to display bold the item corresponding to highlithed serie. I have been looking for a solution for hours unsuccessfully. Can you help me ?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 27 Apr 2017, 08:45 AM
Hello Christophe,

The desired result can be achieved using a custom legend:

http://docs.telerik.com/kendo-ui/controls/charts/how-to/appearance/external-legend

Then on the click event of the item, to manually and or remove a specific CSS class. I modify the example to demonstrate this:

http://dojo.telerik.com/EqeSO

Regards,
Stefan
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data (charts) and form elements.
0
Christophe
Top achievements
Rank 1
answered on 27 Apr 2017, 12:35 PM
Thanks for your help
Tags
Charts
Asked by
Christophe
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Christophe
Top achievements
Rank 1
Share this question
or