Cómo arrastrar y soltar un Sprite en Sencha Touch Charts 2 Beta

I'm trying to understand the new beta release of Sencha Touch Charts 2. I'm not sure whether event handling is fully supported yet, but I need to drag Sprites around and generally get them to react to touch.

Has anyone tackled this yet? Any code snippets that would help?

Ext.util.Draggable does not feel like the right way to do it.


I now understand how the chart code handles the various chart interactions, and that interactions works in the new beta too. I've also noticed that the old Charts 1 code has little or no support for Sprite events either, and so the final example in the Draw Guide fails there too.

Maybe we are just meant to dip in to the chart code, learn, and then code our own stuff for non-chart Sprite events.

In charts 1, there's a draggable config item on Sprites. No idea how it's meant to work though. Looks like it may be a stubbed out feature.


preguntado el 09 de marzo de 12 a las 15:03

¿Resolviste tu problema? -

No. I switched to D3.js for charting. -

0 Respuestas

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.