The position of legend in XYLineChart is at the bottom in my application, but I need the legend to be at the top of the graph (in Swing).

The position of legend in XYLineChart is at the bottom in my application, but I need the legend to be at the top of the graph (in Swing).
