Fix pie chart resizing bug in Ubuntu

#281