pie charts are fully function on frontend and back end, but there are still bugs