Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


To see an example of creating a time series plot with python using matplotlib, see the following Python Matplotlib time series exampleImage Removed

Image Added

To see an example of creating a locations.csv and attributes.csv with python, see the following  Python Locations and Attributes example.

Javascript

locations plot

Using popular javascript libraries like leaflet, jquery and mapbox a web application can be made using the FEWS PI-JSON REST Web Service. The following example shows how to get all locations from FEWS and plot them on a map:

The For the javascript code can bee seen hereseeJavaScript locations Example

time series plot

The following is a Getting time series plot using jquery and from the FEWS PI-JSON REST Web Service using javascript can be easily done using jquery. The following example uses the the morrisjs plot library to display the time series.  

The following javascript code demonstrates how the time series data can be processed to make a simple plotFor the javascript code seeJavaScript time series plot

...