Python‎ > ‎

Google Charts (in flux)

Google not only provides a search engine, they have a number of other products and tools. One of these tools is a charting tool that accepts user data and returns a chart as a .jpg file that is displayed in the browser. The user data has to be encoded as a special URL. For details on the Google Graphs package see http://code.google.com/apis/chart/ .
Read the documentation for the Google Chart API, especially the data-encoding specification found at http://code.google.com/apis/chart/docs/data_formats.html . You may find theGoogle Chart Playground useful as you learn the Chart APIs. 
 
Your goal will be to write a program that does the following.
  1. generates data points for a function specified by the user over a range specified by the user (e.g. y=sin(2*x) from -3.14 to 6.38 ).
  2. Formats this data and all related chart titles, axis labels, etc. into a compliant URL.
  3. Launch the registerred web browser and open the URL created in step 2, which should then display the well formatted chart.
For this project you must submit not just the code itself, but also a project document. The project document must contain all the following elements.
  1. Major functional units, using block diagrams (e.g. the major functions your program uses with arrows indicating the calling sequence and data passed between the functions).
  2. Flow charts that illustrate your logic (e.g. a flow chart for what each major function is doing so I can better understand your code).
  3. A section-by-section analysis of your code describing in words what the major blocks of code do. I want it written and formatted essentially like this page.
  4. The code itself which complies with major PEP-8 style guidelines and complies with my preferences for naming conventions, and coding styles (e.g. for loops vs. while loops).
Comments