Adding ability to orient legend to top or bottom.

Added ability to orient legend on top or bottom. There seems to be issue when using `padding: "strict"` for when the legends are oriented on the bottom or the right. Hope this helps.