-
Replace 1 csv file inside data with updates:
pax_local_map_v[new_version].csv -
Update file names in
js/index.json line 243:
Promise.all([
d3.csv("data/pax_local_map_v[new_version].csv"),
]).then(function (files) {- Deploy
git add .
git commit -m "message"
git pushpax_local_map_v{ver}.csvis the pax local csv file with additional columns added. These include:'agt_dat', 'year','stage_label','description','PAX_Hyperlink','PDF_Hyperlink', 'PAX_Local_Hyperlink', 'local_search- make sure date ('Dat') column is formatted like
'%Y-%m-%d'or timeline function will not work. stage_labelvalues must match exactly (including spelling and punctuation), as they are used directly for:- map colours
- timeline colours
- filters
Expected values include:
-
Pre-negotiation/process
-
Ceasefire
-
Framework-substantive, partial
-
Framework-substantive, comprehensive
-
Implementation
-
Renewal
-
Other
-
If a new
stage_labelcategory is introduced, it must be added in:map.addLayer→circle-colormatch- beeswarm timeline colour switch in
index.js - legend in
index.html - filter button logic in
index.js
-
The
Stagecolumn (e.g. Pre, Cea, SubPar) is used for timeline positioning -
The
stage_labelcolumn is used for display and colouring
Run a local server (to test new data locally before pushing):
python -m http.server
Then open: http://localhost:8000
-
Timeline not showing / only one point → Check
Datformat isYYYY-MM-DD -
Points appear grey →
stage_labeldoes not match expected values exactly -
Filter not working → Missing class in legend (e.g.
.com) or missing JS handler -
New category not appearing → Must be added in JS colour mapping + legend + filters
- data updated
- made sure all say 'pre-negotiation/process' rather than just 'pre-negotiation'
- added substantive, comprehensive as there are now local SubComp agts
- 0,0 coordinates for Nepalese agreements: jittered them around central point in Nepal for the purposes of this map.