This project contains SQL and R scripts in order to obtain data from domjudge database and visualize it nicely. The scripts are explained further.
These scripts are available at src/sql/
teams-verdicts.sql
: Obtains number of submissions teams made during a particular contests grouped by the verdict their submissions got.problems-verdicts.sql
: Obtains number of submissions for problems grouped by their verdicts.verdicts.sql
: Obtains number of submissions grouped by their verdicts.
To have the scripts work, consider the following:
- Replace
<YourJudgeTeam>
in every SQL script to the name of your Judge's team. e.g.:DOMjudge
. - Replace
<YourContestShortName>
in every SQL script to the name of the contest you are doing the visualization for. e.g.:ACM45
.
These scripts are available at src/r/
. The results are saved into data/plot/
directory.
team-verdicts.r
: Plot a stacked bar chart from tabledata/team-verdicts.csv
.problems-verdicts.r
: Plot a stacked bar chart from tabledata/problems-verdicts.csv
.verdict.r
: Plot a pie chart from tableverdicts.csv
.
This project depends on these packages:
- MySQL
- R
- ggplot library for R.
- Python 3
Install them before running the scripts.
Simply run the script dj-visualize.py
using python3
. Then go to directory data/plot/
and see the result.
cd domjudge-visualize
python3 dj-visualize.py
(TODO)