I am using jqplot. I am facing some issue with the legends.
The legend is overlapping some part of the chart. Also the legend is stretched to the full width of the chart.

Here's how it looks.
![enter image description here](https://i.stack.imgur.com/CZ2eT.png)

This makes it look ugly.
Can anyone help me out of this?

Any help will be greatly appreciated.