I’d like to use a pie chart to show the results of a few calculations. I’ve got 3 fields that the users enters numbers into. Then these numbers are used in calculations in an ajax call. I’ve used json_encode to return this ajax call as an array, with 3 numbers in.
Here is a Js fiddle http://jsfiddle.net/jx9sJ/5/ . In this example the entered numbers are displayed in a graph. I would like to send the entered numbers to ajax for some calculations, and then display them in a graph like this.
When the user clicks ‘submit’ the 3 entered numbers are used in calculations by ajax, & then returned json_encode($total);.