Pie Chart Works

Fixed function input error