Implementing pie chart graph and line graph using php