Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 982 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 982 Bytes

PopStats Dataviz

Interactive data-visualisation for popstats.unhcr.org

thumbnail.jpg


To install and serve locally

  1. npm install
  2. bower install
  3. grunt serve

To build and deploy

  1. grunt build packages the application into the dist folder
  2. ssh into server (unhcrpsr alias)
  3. cd /var/www/dataviz
  4. git pull

To embed the visualisation in other pages

<script>window.onresize = function(){
    iframeResize();}; function iframeResize(){ var iw = $('#unhcr_popstats_embed').width();
    $('#unhcr_popstats_embed').height(iw/1.415);}; 
</script>```