multirow graph legend

This commit is contained in:
Dominik Heidler 2015-11-06 18:06:31 +01:00
parent e6c94c35fa
commit cb1215ac8a
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,7 @@ function network_graph(netif) {
xaxis: {mode: "time", timezone: "browser"},
selection: {mode: "x"},
yaxis: {min: 0, mode: "byteRate"},
legend: {noColumns: 2},
series: {downsample: {threshold: Math.floor(netstat.width() * points_per_px)}}
});
netstat.bind("plotselected", function (event, ranges) {
@ -94,6 +95,7 @@ function neighbour_graph(neighbours) {
xaxis: {mode: "time", timezone: "browser"},
selection: {mode: "x"},
yaxis: {min: 0, max: 400},
legend: {noColumns: 2},
series: {downsample: {threshold: Math.floor(meshstat.width() * points_per_px)}}
});
meshstat.bind("plotselected", function (event, ranges) {
@ -165,6 +167,7 @@ function memory_graph() {
xaxis: {mode: "time", timezone: "browser"},
selection: {mode: "x"},
yaxis: {min: 0, mode: "byte"},
legend: {noColumns: 3},
series: {downsample: {threshold: Math.floor(memstat.width() * points_per_px)}}
});
memstat.bind("plotselected", function (event, ranges) {
@ -233,6 +236,7 @@ function process_graph() {
xaxis: {mode: "time", timezone: "browser"},
selection: {mode: "x"},
yaxis: {min: 0, max: 50},
legend: {noColumns: 2},
series: {downsample: {threshold: Math.floor(procstat.width() * points_per_px)}}
});
procstat.bind("plotselected", function (event, ranges) {

View File

@ -1,4 +1,5 @@
{% extends "bootstrap.html" %}
{% block viewport %}{{super()}}, maximum-scale=1.0, user-scalable=no{% endblock %}
{% block head %}{{super()}}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
@ -17,6 +18,7 @@
}
.graph .legendLabel {
padding-left: 5px;
padding-right: 7px;
}
#map {
height: 405px;