• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[HELPED] Clickable Chart Y Axis

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [HELPED] Clickable Chart Y Axis

    Hi,

    I have been trying to make the labels on my 'Y' axis clickable so I can fire an event to load data in a grid.

    Capture.jpg

    From the stacked bar chart above I would like to be able to click the labels on the Y axis and fire an event (i.e. click on the text 'Putaway') - how can I attach a listener to the text field of the axis or can you not ?

    I have tried attaching a handler to the axes with no luck.

    Thanks

  • #2
    It does not look like there is a handler or even a click even for chart labels.

    I think your best bet here is to listen for the click even on the chart, which passes the Dom event and you could interrogate the target to see if a label object was clicked.

    http://docs.sencha.com/extjs/4.1.3/#...rt-event-click

    http://docs.sencha.com/extjs/4.1.3/#...xt.EventObject

    Comment


    • #3
      Thanks Eric, will give it a whirl

      Comment

      Working...
      X