mirror of
https://github.com/bellingcat/gesara-entity-viz.git
synced 2026-06-12 13:38:32 +03:00
changed bbox of network, added variable in json data to set label threshold, changed to British spelling convention
This commit is contained in:
@@ -12,7 +12,7 @@ COLORS = colorcet.glasbey_dark
|
||||
|
||||
OUTPUT_JSON = "../public/dataset_entities.json"
|
||||
|
||||
NODE_SCALING = 0.5
|
||||
NODE_SCALING = 0.35
|
||||
# GraphML file generated by Gephi
|
||||
INPUT_GRAPHML = "data/entity_network_layout.graphml"
|
||||
CLUSTERS = [
|
||||
@@ -46,7 +46,9 @@ CLUSTERS = [
|
||||
{"key": "37", "clusterLabel": "Payment platforms"},
|
||||
{"key": "42", "clusterLabel": "Vote audit"},
|
||||
]
|
||||
BOUNDING_BOX = {"x": [-300, 400], "y": [-600, 150]}
|
||||
BOUNDING_BOX = {"x": [100, 200], "y": [-370,-50]}
|
||||
|
||||
LABEL_THRESHOLD = 15
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
@@ -84,6 +86,7 @@ if __name__ == "__main__":
|
||||
]
|
||||
+ [{"key": "100", "clusterLabel": "Other", "color": "#999999"}],
|
||||
"bbox": BOUNDING_BOX,
|
||||
'labelThreshold': LABEL_THRESHOLD
|
||||
}
|
||||
|
||||
with open(OUTPUT_JSON, "w") as f:
|
||||
Reference in New Issue
Block a user