Skip to content
 
 

Repository files navigation

Documentation for Extending Templates

Update instructions

  1. Update src/data/source/country_files.csv;
  2. Inlcude agreement and actor csv for the updated country in src/data/source/ folder;
  3. Run the notebook prep4dashboard.ipynb;
  4. Update country name and file name in src/views/Homeview.vue and src/components/network.vue

vis-badge web component (local dev)

The <vis-badge> element is provided by the badge-lib project as an ES module bundle (vis-badge.js). This repo loads badges with a fallback chain:

  1. local public/vis-badge.js (cache-busted in development),
  2. optional pinned hosted file (VUE_APP_VIS_BADGE_WC_FILE),
  3. hosted latest file from VUE_APP_VIS_BADGE_WC_BASE_URL. For local overrides, create .env.local (gitignored) and set:
  • VUE_APP_VIS_BADGE_WC_BASE_URL=...
  • VUE_APP_VIS_BADGE_WC_FILE=vis-badge.vX.Y.Z.hash.js (optional pin)
  • VUE_APP_VIS_BADGE_ALWAYS_LIVE=true|false If the app cannot import the bundle, it logs all attempted URLs.

Explanation

This dashboard uses:

  • country data file in json format, named as {abbr}_agt.json.
  • {abbr}_actor.json used in src/components/network.vue;
  • actor_definitions.json used in src/components/legends.vue.

Original data files are stored in: src/data/source/ In this folder, we store original data for countries' agreement links and actor information, recorded in country_files.csv.

There's a jupyter notebook prep4dashboard.ipynb. Run the scripts it will output all country files to the upper folder.

Please note: The output file contains only information used to construct networks (NetPanoraoma sepcs), support peace process selection, provide additional information in the dashboard.

Read in countryData

Country data is imported in src/views/Homeview.vue as countryData. It is parsed and passed to child component src/component/peaceprocess.vue, where we make the selection for peace process and render all the visualizations. Actor data is imported in src/components/network.vue.

Pending Fixes

  • Timeline beeswarm graph lacks full responsiveness
  • ...

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages