Changed the legend sequence and position