How to add listener to a GXT3 chart?
I'm using the new Chart widget, and struggling to figure out a way to add a "load listener". I noticed that I can load the data into the chart widget rather quickly, but it takes several seconds until the UI actually renders (during which time the browser freezes, which isn't pretty. Btw, I noticed this happens with the simple chart examples you have setup, as in: http://www.sencha.com/examples/#ExamplePlace:areachart. Also, when you resize the panel, you can see the blue background for several seconds before the chart itself is resized properly).
In any case, I want to set up a spinner that will disappear once the chart is fully rendered (or mask/unmask). Why isn't there a simple "chart.addLoadListener()" mechanism that I can implement so I know when to remove the loading spinner? How can I listen for rendering completion? I tried chart.addBeforeShowHandler() in desperation, but that seems to be useless.
Thanks for any help you can give me with this!
Tags for this Thread