Improved legend, added webkit fix for svg height.