statistics.html: Adjust design of pie charts
Minimum percentage for firmware increased to 2 per cent, for routers increased to 3 per cent. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
d8db4b2f9d
commit
9375c2f891
|
@ -37,3 +37,11 @@ table.neighbours {
|
|||
padding-left: 5px;
|
||||
padding-right: 7px;
|
||||
}
|
||||
.graph-pie {
|
||||
height: 250px;
|
||||
width: 100%;
|
||||
}
|
||||
.graph-pie .legendLabel {
|
||||
padding-left: 5px;
|
||||
padding-right: 7px;
|
||||
}
|
||||
|
|
|
@ -357,7 +357,7 @@ function global_router_firmwares_graph() {
|
|||
tooltip: {show: true, content: "<b>%s</b>: %p.0%", shifts: {x: 15, y: 5}, defaultTheme: true},
|
||||
series: {pie: {
|
||||
show: true, radius: 99/100, label: {show: true, formatter: labelFormatter, radius: 0.5, threshold: 0.10},
|
||||
combine: {threshold: 0.009}
|
||||
combine: {threshold: 0.019}
|
||||
}}
|
||||
});
|
||||
placeholder.bind("plotclick", function(event, pos, obj) {
|
||||
|
@ -382,7 +382,7 @@ function global_router_models_graph() {
|
|||
tooltip: {show: true, content: "<b>%s</b>: %p.0%", shifts: {x: 15, y: 5}, defaultTheme: true},
|
||||
series: {pie: {
|
||||
show: true, radius: 99/100, label: {show: true, formatter: labelFormatter, radius: 0.5, threshold: 0.2},
|
||||
combine: {threshold: 0.009}
|
||||
combine: {threshold: 0.029}
|
||||
}}
|
||||
});
|
||||
placeholder.bind("plotclick", function(event, pos, obj) {
|
||||
|
|
|
@ -130,7 +130,7 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Router Firmwares @ {{ selecthood }}</div>
|
||||
<div class="panel-body">
|
||||
<div id="globrouterfwstat" class="graph"></div>
|
||||
<div id="globrouterfwstat" class="graph-pie"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -138,7 +138,7 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Router Models @ {{ selecthood }}</div>
|
||||
<div class="panel-body">
|
||||
<div id="globroutermodelsstat" class="graph"></div>
|
||||
<div id="globroutermodelsstat" class="graph-pie"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue