fix bug: pie chart will cover the legend