created server for visualizing pie charts