fix scaling on line and pie graphs