mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 06:24:23 +01:00
Making user facing graphs transparent (#294)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user