get pie graph working