PDA

View Full Version : [SOLVED]Issue working with charts



jtpacheco
8 Jul 2010, 10:06 AM
Hey all. I've got a chart component running smoothly up until now. I want to allow the user to click a dot (its a line chart), the code will store that data, then click a second dot, and in the code do some difference analysis. However, nothing happens, not even a basic alert window. Upon stepping through with firebug, something called "Ext.FlashEventProxy" is, at a seemingly random point, hijacking the itemclick event and not returning to it...Any suggestions/help?

Mag_42
8 Jul 2010, 10:20 AM
Is the user clicking actual points on the line chart data... or arbitrary coordinates in the chart axis?

EDIT: Oh sorry you mention itemclick so i guess you are clicking actual 'records'

What exactly are you trying to do right now?

I know i am successfully able to have click event on a chart

I use it to drill deeper down into data



this.on('itemclick', function(click){

this.store.load({params:{object: click.item.id}})

}, this)


That would be a simplistic example

jtpacheco
8 Jul 2010, 10:22 AM
Actual points. Arbitrary coordinates don't fire the event.

jtpacheco
8 Jul 2010, 11:22 AM
Grumble.

False alarm, folks, I figured it out. Apparently it's Flash's way of recovering from an error, so the object doesn't crash. However, it also suppresses any error output, including to firebug. Its essentially an exception that does not in any way get reported.