Added pie graph support