Chart legend click event

10 posts, 1 answers
  1. Tom
    Tom avatar
    1 posts
    Member since:
    Oct 2012

    Posted 17 Sep 2012 Link to this post

    Is there an event that I can register to for a Pie Chart's lenged's series click?
  2. Answer
    Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 17 Sep 2012 Link to this post

    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!
  3. Louis
    Louis avatar
    24 posts
    Member since:
    Oct 2010

    Posted 04 May 2013 Link to this post

    I'll +1 this request.  2 requests in six months should be enough, right? ;)

  4. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 06 May 2013 Link to this post

    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!
  5. Konstantin
    Konstantin avatar
    4 posts
    Member since:
    Feb 2013

    Posted 07 May 2013 Link to this post

    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
  6. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 10 May 2013 Link to this post

    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!
  7. Stefan
    Stefan avatar
    1 posts
    Member since:
    Aug 2013

    Posted 30 Aug 2013 Link to this post

    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
  8. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 30 Aug 2013 Link to this post

    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!
  9. Pablo Andres
    Pablo Andres avatar
    3 posts
    Member since:
    May 2013

    Posted 02 Sep 2013 Link to this post

    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.
  10. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 05 Sep 2013 Link to this post

    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!
Back to Top