Added dynamic legend (tooltip-style).