hxl-team / HXL-Chart

Publishing HXL refugee data in HighCharts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HXL Chart API

Generates a JS script that shows a spark line chart, using Highcharts JS.

Quickstart

Call the script with an emergency argument, providing the URI of the emergency (required). The script a JS script that fills a DIV (id="container") on the page embedding this script with a Highchart. The chart displays the person counts for all refugee populations related to that emergency over time.

If you don't know the URI for your emergency, please consult this list of emergencies we currently have in HXL.

Sample Queries

We have an instance of this script running at http://hxl.humanitarianresponse.info/api/mali-chart.htm: The page shows a chart with the refugee counts for the Mali crisis (based on our test data) over time.

About

Publishing HXL refugee data in HighCharts


Languages

Language:JavaScript 94.8%Language:PHP 5.2%Language:Perl 0.0%