now it does pie graphs too