diff --git a/static_content/css/oastat_d3.css b/static_content/css/oastat_d3.css new file mode 100644 index 0000000..4b5c5a1 --- /dev/null +++ b/static_content/css/oastat_d3.css @@ -0,0 +1,42 @@ +/* D3.js visualizations styles */ + +.pie-chart { + display: flex; + justify-content: center; + margin: 20px 0; +} + +.pie-chart svg { + font-family: Arial, sans-serif; +} + +.pie-slice { + stroke: #fff; + stroke-width: 2px; +} + +.pie-label { + fill: #333; + font-size: 12px; + pointer-events: none; +} + +.legend { + display: flex; + flex-wrap: wrap; + justify-content: center; + margin: 10px 0; + gap: 10px; +} + +.legend-item { + display: flex; + align-items: center; + margin: 5px; +} + +.legend-color { + width: 15px; + height: 15px; + margin-right: 5px; +} diff --git a/templates/map.tpl b/templates/map.tpl index 8e50aa2..7a42df9 100644 --- a/templates/map.tpl +++ b/templates/map.tpl @@ -30,6 +30,8 @@ + + OpenArena Stats - Map {{MAP_NAME}} @@ -41,6 +43,12 @@

Weapon Kills on this Map

+ +
+
+
+
+ @@ -53,6 +61,90 @@ {{/WEAPON_KILLS}}
Weapon
+ +

Most Recent Matches