Results 1 to 5 of 5

Thread: click Listener with columnChart

  1. #1
    Ext User
    Join Date
    Jun 2009
    Posts
    2
    Vote Rating
    0
      0  

    Default click Listener with columnChart

    I've tried adding a listener for a columnChart but to no avail. Nothing happens when I click on the chart.

    I'm beginning to think the columnChart does not support the click event.

    I want to have listener return the column clicked on similar to the line chart in the chart examples.

    this is the listener code I added to the columnChart definition:

    listeners: {
    click: function(o){
    var rec = store.getAt(o.index);
    Ext.example.msg('Item Selected', 'You chose {0}.', rec.get('name'));
    }
    }

    Any assistance is greatly appreciated.

  2. #2
    Ext User
    Join Date
    Aug 2009
    Posts
    13
    Vote Rating
    0
      0  

    Default Adding click event to a chart

    Is there a work around for this? I am having the same issue.

  3. #3
    Ext User
    Join Date
    Sep 2009
    Posts
    1
    Vote Rating
    0
      0  

    Default

    Hi,
    did anyone find a solution?

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Redwood City
    Posts
    30,644
    Vote Rating
    61
      0  

    Default

    Docs are incomplete right now.

    Try using itemclick

    And then stop in debug and examine exactly what you get passed.
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

  5. #5
    Ext User
    Join Date
    Aug 2009
    Posts
    13
    Vote Rating
    0
      0  

    Default Work around

    I was able to replicate the behavior by adding a mouse down listener.

    var el = Ext.get('chartObj');
    el.addListener('mousedown', function(){
    window.location.href('../XXX/XXXX.htm');
    });

Posting Permissions

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