fix #2 : Control of the legend position (API)