feature creation abstracted in legend
merge with master
bugfix: tooltip for labels is now called on the dom element to allow dom attachment