update getChartData.php to select pie chart