started adding support for pie charts. still incomplete