View tagproports.py
import json, collections, plotly.plotly as plotly | |
with open("tagpromatches.json") as f: | |
data=json.load(f) | |
port_counts=collections.Counter(match['port'] for match in data.values()) | |
fig= { | |
'data': [{ | |
'labels': port_counts.keys(), |
View tagpromaps.py
import json, plotly.plotly as plotly | |
with open("tagpromatches.json") as f: | |
data=json.load(f) | |
radius=0 | |
segment=0 | |
origin=0 | |
pi=0 | |
sphere=0 |
View tagprowins.py
import json, plotly.plotly as plotly | |
with open("tagpromatches.json") as f: #you can get the match data here: https://tagpro.eu/?science | |
data=json.load(f) | |
redWins=0 | |
blueWins=0 | |
ties=0 | |
for match in data.values(): |