ART won't support delegation using the classic style. Supporting it would 
require a reference from the DOM element to the ART class instance which we 
want to avoid.

The current ART modes support a DOM model which means that you can use the 
underlying DOM Elements in any MooTools function. So you can use event 
delegation. $(myShape).addEvent('path, shape', ...); Just make sure your 
selector covers both the SVG and VML tag names.

However, there are other ART modes available as plugins. Such as ART-Canvas. 
While they will support bubbling they won't support any underlying DOM 
Elements (except maybe for some accessibility stuff).

Even if we had event delegation, a chart typically wants to have a 
hit-surface that's bigger than the visual lines or dots. The trick is to use 
an invisible element on top. Right now you can use a transparent 
fill: shape.fill('rgba(0,0,0,0)')

On a chart, you don't need this. You can just add a listener on the bottom 
surface. Then you use the x/y coordinates of the event to directly infer 
what data column you need to address. I'm working on an API to simplify 
extracting the x/y calculations from the event.

There is also a charting helper API in the works. Much like Protovis. That 
will allow you to easier work with large sets of elements as a single unit.

Reply via email to