Plotting

REST end-point:

http://bamboo.io/datasets/[DATASET ID]/plot

View the documentation for the query parameters accepted by the plot end point.

Kenyan school teaching staff by province

https://raw.github.com/pld/bamboo/master/docs/images/kenya_school_staff_by_district.png

Click for an interactive version.

Note

Chart parameters

  • select = {"total_teaching_staff":1}
    • Choose only the column total_teaching_staff.
  • group = province
    • Group on the dimensional column province.
  • plot_type = bar
    • Format the plot as a bar plot.

Meal cost grouped by rating over time

https://raw.github.com/pld/bamboo/master/docs/images/good_eats_amount_by_rating.png

Click for an interactive version.

Note

Chart parameters

  • select = {"amount":1}
    • Choose only the column amount.
  • group = food_type
    • Group on the dimensional column food_type.
  • index = submit_date
    • Set the date column submit_date as the temporal index column.
  • query = {"amount": {"$lt": 400}, "submit_date": {"$gt": "2012-12-09"}}
    • Restrict the data to dates after December 9th 2012, and to amounts less than 400.
  • plot_type = area
    • Format the plot as an area plot.