|
@@ -93,6 +93,13 @@
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
+var from = {{from}};
|
|
|
+var to = {{to}};
|
|
|
+var markerEnable = false;
|
|
|
+if((to - from) <= 21600) {
|
|
|
+ markerEnable = true;
|
|
|
+}
|
|
|
+
|
|
|
Highcharts.chart('interface_bandwidth', {
|
|
|
chart: {type: 'spline'},
|
|
|
title: {text: 'Bandwidth Interface'},
|
|
@@ -100,7 +107,7 @@ Highcharts.chart('interface_bandwidth', {
|
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
yAxis: {labels: {formatter: bandwidthAxisLabel,align: 'left'},min: 0},
|
|
|
tooltip: {formatter: bandwidthTooltip},
|
|
|
- plotOptions: {series: {dataLabels: {enabled: false, color: '#666666', formatter: bandwidthDataLabel}}},
|
|
|
+ plotOptions: {series: {marker: {enabled: markerEnable}, dataLabels: {enabled: false, color: '#666666', formatter: bandwidthDataLabel}}},
|
|
|
series: [{
|
|
|
name: "OUT Bandwidth",
|
|
|
data: {{series['out_bandwidth']['data']|json_encode}},
|
|
@@ -119,7 +126,7 @@ Highcharts.chart('interface_rf', {
|
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
yAxis: {labels: {format: '{value} dB'},min: 0},
|
|
|
tooltip: {valueSuffix: ' dB',valueDecimals: 2},
|
|
|
- plotOptions: {series: {dataLabels: {enabled: false, color: '#666666'}}},
|
|
|
+ plotOptions: {series: {marker: {enabled: markerEnable}, dataLabels: {enabled: false, color: '#666666'}}},
|
|
|
legend: {enabled: false},
|
|
|
series: [{
|
|
|
name: "SNR",
|
|
@@ -136,7 +143,7 @@ Highcharts.chart('interface_cm', {
|
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
yAxis: {min: 0,stackLabels: {enabled: false,style: {fontWeight: 'bold',color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'}}},
|
|
|
tooltip: {valueSuffix: ' cm',valueDecimals: 0},
|
|
|
- plotOptions: {area: {stacking: 'normal', dataLabels: {enabled: false, color: '#666666'}}},
|
|
|
+ plotOptions: {series: {marker: {enabled: markerEnable}}, area: {stacking: 'normal', dataLabels: {enabled: false, color: '#666666'}}},
|
|
|
series: [{
|
|
|
name: 'Online',
|
|
|
data: {{series['on']['data']|json_encode}},
|
|
@@ -177,7 +184,7 @@ Highcharts.chart('interface_cer', {
|
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
yAxis: {labels: {format: '{value} %'},min: 0},
|
|
|
tooltip: {valueSuffix: ' %',valueDecimals: 6},
|
|
|
- plotOptions: {series: {dataLabels: {enabled: false, color: '#666666'}}},
|
|
|
+ plotOptions: {series: {marker: {enabled: markerEnable}, dataLabels: {enabled: false, color: '#666666'}}},
|
|
|
legend: {enabled: false},
|
|
|
series: [{
|
|
|
name: "CER",
|
|
@@ -194,7 +201,7 @@ Highcharts.chart('interface_errors', {
|
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
yAxis: {labels: {format: '{value}'},min: 0},
|
|
|
tooltip: {valueSuffix: ' codewords',valueDecimals: 0},
|
|
|
- plotOptions: {series: {dataLabels: {enabled: false, color: '#666666'}}},
|
|
|
+ plotOptions: {series: {marker: {enabled: markerEnable}, dataLabels: {enabled: false, color: '#666666'}}},
|
|
|
series: [
|
|
|
{
|
|
|
name: "Correcteds",
|
|
@@ -218,7 +225,7 @@ Highcharts.chart('interface_utilization', {
|
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
yAxis: {labels: {align: 'left'},min: 0},
|
|
|
tooltip: {valueSuffix: ' %',valueDecimals: 2},
|
|
|
- plotOptions: {spline: {marker: {enabled: true}}},
|
|
|
+ plotOptions: {series: {marker: {enabled: markerEnable}}, spline: {marker: {enabled: true}}},
|
|
|
series: [
|
|
|
{% for u in utilizations %}
|
|
|
{
|