Results 1 to 2 of 2

Thread: Contextual Menus in Charts

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default Unanswered: Contextual Menus in Charts

    I'm currently experiencing problems implementing contextual menus for charts. Since charts do not inherit from Component, there is no setContextualMenu exposed. I have attempted to use the SeriesSelectionHandler to draw a popup with a menu underneath the mouse but ran into the a few problems:

    1. I can not get the x,y coordinates of the click from the SeriesSelectionEvent.
    2. I can not differentiate between right and left clicks.

    If I override the onMouseDown method, I can get the x,y coordinate but would not be able to retrieve the index of the series clicked.

    Does anyone have any suggestions implementing contextual menus in the new charts?

  2. #2
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Answers
    3
    Vote Rating
    3
      0  

    Default

    Thanks, I had not taken this use case into account. Chart events will now store the originating DOM event, which should provide both data points you require. Said change will be in the next release.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •