- Update
src/data/source/country_files.csv; - Inlcude agreement and actor csv for the updated country in
src/data/source/folder; - Run the notebook
prep4dashboard.ipynb; - Update country name and file name in
src/views/Homeview.vueandsrc/components/network.vue
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:
- local
public/vis-badge.js(cache-busted in development), - optional pinned hosted file (
VUE_APP_VIS_BADGE_WC_FILE), - 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|falseIf the app cannot import the bundle, it logs all attempted URLs.
This dashboard uses:
- country data file in
jsonformat, named as{abbr}_agt.json. {abbr}_actor.jsonused insrc/components/network.vue;actor_definitions.jsonused insrc/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.
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.
- Timeline beeswarm graph lacks full responsiveness
- ...