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

Chart legend click event

9 Answers 501 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 17 Sep 2012, 01:36 PM
Is there an event that I can register to for a Pie Chart's lenged's series click?

9 Answers, 1 is accepted

Sort by
0
Accepted
Hristo Germanov
Telerik team
answered on 17 Sep 2012, 01:46 PM
Hi Tom Mathias,

Currently this functionality is not supported, but I will add it as a feature request in our internal system. If we receive more requests for the same functionality, we will schedule it for investigation.

All the best,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Louis
Top achievements
Rank 1
answered on 04 May 2013, 05:43 AM
I'll +1 this request.  2 requests in six months should be enough, right? ;)

0
Hristo Germanov
Telerik team
answered on 06 May 2013, 08:10 AM
Hi guys,

We have recently introduced legend click event and some legend improvements for the next official release of Kendo UI scheduled for the next week. This features are included with our internal builds.

Regards,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Konstantin
Top achievements
Rank 1
answered on 07 May 2013, 07:10 PM
I've just played with legend click event in  2013.1.506 internal build. Click on legend item by default show/hides related line (or other chart item). Looks like it's impossible to prevent this behavior or change it.

Is it possible to:
1. Change behavior to decrease opacity instead of hiding
2. Add one click option to make all items visible
3. Change behavior to hide (or just decrease opacity) all items instead of clicked one
0
Hristo Germanov
Telerik team
answered on 10 May 2013, 03:51 PM
Hello Konstantin,

1) We will try to add functionality to prevent the hiding of the series.
2) If you want you can add button that will reset your series visibility.
3) If you can prevent the series visibility(after 1 is implemented) you can hook up to the legend series click and there you can do your custom logic for hiding the series or just set a different opacity of the series.

We will try to implement 1 for the SP1 of Kendo UI.

Greetings,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Stefan
Top achievements
Rank 1
answered on 30 Aug 2013, 12:33 PM
Hello Hristo,

Is item 1 implemented in the current version?
If not, is it scheduled and for which version?

Many thanks in advance for your support!
Stefan
0
Hristo Germanov
Telerik team
answered on 30 Aug 2013, 02:02 PM
Hello Stefan,

This feature is already implemented with the new version of Kendo UI. Could you download it and give it a try?

Regards,
Hristo Germanov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Pablo Andres
Top achievements
Rank 1
answered on 02 Sep 2013, 08:01 PM
I have tried to prevent the default behavior of hide/show series when a legend item is clicked but it have not worked,
I used this on the function called on the legend item click event:
event.preventDefault();

first, is this possible to prevent the default behavior of legendItemClick: http://docs.kendoui.com/api/dataviz/chart#events-legendItemClick

If so, how can I do that?

BTW I'm using the latest version of kendo UI.

thanks.
0
Hristo Germanov
Telerik team
answered on 05 Sep 2013, 10:33 AM
Hi Pablo Andres,

I tried to reproduce the problem - to no avail. I have made a simple test project: http://jsbin.com/owezeGO/2/edit Am I missing something?

Regards,
Hristo Germanov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Tom
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Louis
Top achievements
Rank 1
Konstantin
Top achievements
Rank 1
Stefan
Top achievements
Rank 1
Pablo Andres
Top achievements
Rank 1
Share this question
or