From 5e98a9fbdc9304e88ee1fbea6beb06087b3b19e0 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Tue, 20 Jun 2017 14:39:05 -0400 Subject: [PATCH] Making user facing graphs transparent (#294) --- CTFd/themes/original/static/js/scoreboard.js | 4 +++- CTFd/themes/original/static/js/team.js | 12 +++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CTFd/themes/original/static/js/scoreboard.js b/CTFd/themes/original/static/js/scoreboard.js index eafeb37..c0cc0b6 100644 --- a/CTFd/themes/original/static/js/scoreboard.js +++ b/CTFd/themes/original/static/js/scoreboard.js @@ -51,7 +51,9 @@ function scoregraph () { } var layout = { - title: 'Top 10 Teams' + title: 'Top 10 Teams', + paper_bgcolor: 'rgba(0,0,0,0)', + plot_bgcolor: 'rgba(0,0,0,0)' }; console.log(traces); diff --git a/CTFd/themes/original/static/js/team.js b/CTFd/themes/original/static/js/team.js index c53b340..26dae09 100644 --- a/CTFd/themes/original/static/js/team.js +++ b/CTFd/themes/original/static/js/team.js @@ -48,7 +48,9 @@ function scoregraph() { ]; var layout = { - title: 'Score over Time' + title: 'Score over Time', + paper_bgcolor: 'rgba(0,0,0,0)', + plot_bgcolor: 'rgba(0,0,0,0)' }; Plotly.newPlot('score-graph', data, layout); @@ -76,7 +78,9 @@ function keys_percentage_graph() { }]; var layout = { - title: 'Key Percentages' + title: 'Key Percentages', + paper_bgcolor: 'rgba(0,0,0,0)', + plot_bgcolor: 'rgba(0,0,0,0)' }; @@ -120,7 +124,9 @@ function category_breakdown_graph() { }]; var layout = { - title: 'Category Breakdown' + title: 'Category Breakdown', + paper_bgcolor: 'rgba(0,0,0,0)', + plot_bgcolor: 'rgba(0,0,0,0)' }; Plotly.newPlot('categories-pie-graph', data, layout);