changed bbox of network, added variable in json data to set label threshold, changed to British spelling convention

This commit is contained in:
Tristan Lee
2022-12-16 01:13:35 -06:00
parent 8c4dd6f87c
commit 9f39ceee7b
6 changed files with 23 additions and 21 deletions

View File

@@ -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: