Pie chart - Legend issue

We’re facing an issue with pie chart legends.
We try to put the legend on the right side but it never goes there.
Even when it is under the graph, the results do not seem really fine…
sql command:
select now() as time, OSNAME, count(OSNAME) from hardware group by OSNAME;

Any ideas?