|
@@ -49,6 +49,13 @@
|
|
|
|
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
+var from = {{from}};
|
|
|
|
+var to = {{to}};
|
|
|
|
+var markerEnable = false;
|
|
|
|
+if((to - from) <= 21600) {
|
|
|
|
+ markerEnable = true;
|
|
|
|
+}
|
|
|
|
+
|
|
Highcharts.chart('onu_bandwidth', {
|
|
Highcharts.chart('onu_bandwidth', {
|
|
chart: {type: 'spline'},
|
|
chart: {type: 'spline'},
|
|
title: {text: 'Bandwidth ONU'},
|
|
title: {text: 'Bandwidth ONU'},
|
|
@@ -56,7 +63,7 @@ Highcharts.chart('onu_bandwidth', {
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
yAxis: {labels: {formatter: bandwidthAxisLabel,align: 'left'},min: 0},
|
|
yAxis: {labels: {formatter: bandwidthAxisLabel,align: 'left'},min: 0},
|
|
tooltip: {formatter: bandwidthTooltip},
|
|
tooltip: {formatter: bandwidthTooltip},
|
|
- plotOptions: {spline: {marker: {enabled: true}}},
|
|
|
|
|
|
+ plotOptions: {series: {marker: {enabled: markerEnable}}, spline: {marker: {enabled: true}}},
|
|
series: [{
|
|
series: [{
|
|
name: "IN Bandwidth",
|
|
name: "IN Bandwidth",
|
|
data: {{series['in_bandwidth']['data']|json_encode}},
|
|
data: {{series['in_bandwidth']['data']|json_encode}},
|
|
@@ -85,7 +92,7 @@ Highcharts.chart('onu_consumption', {
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
yAxis: {labels: {formatter: consumptionAxisLabel,align: 'left'},min: 0},
|
|
yAxis: {labels: {formatter: consumptionAxisLabel,align: 'left'},min: 0},
|
|
tooltip: {formatter: consumptionTooltip},
|
|
tooltip: {formatter: consumptionTooltip},
|
|
- plotOptions: {spline: {marker: {enabled: true}}},
|
|
|
|
|
|
+ plotOptions: {series: {marker: {enabled: markerEnable}}, spline: {marker: {enabled: true}}},
|
|
series: [{
|
|
series: [{
|
|
name: "IN Consumption",
|
|
name: "IN Consumption",
|
|
data: {{series['in_consumption']['data']|json_encode}},
|
|
data: {{series['in_consumption']['data']|json_encode}},
|
|
@@ -104,7 +111,7 @@ Highcharts.chart('onu_rf', {
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
yAxis: {labels: {format: '{value} dB'},min: null},
|
|
yAxis: {labels: {format: '{value} dB'},min: null},
|
|
tooltip: {valueSuffix: ' dB',valueDecimals: 2},
|
|
tooltip: {valueSuffix: ' dB',valueDecimals: 2},
|
|
- plotOptions: {spline: {marker: {enabled: true}}},
|
|
|
|
|
|
+ plotOptions: {series: {marker: {enabled: markerEnable}}, spline: {marker: {enabled: true}}},
|
|
series: [{
|
|
series: [{
|
|
name: "TX Power",
|
|
name: "TX Power",
|
|
data: {{series['tx']['data']|json_encode}},
|
|
data: {{series['tx']['data']|json_encode}},
|
|
@@ -125,7 +132,7 @@ Highcharts.chart('onu_voltage', {
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
yAxis: {labels: {format: '{value} V'},min: 0},
|
|
yAxis: {labels: {format: '{value} V'},min: 0},
|
|
tooltip: {valueSuffix: ' V',valueDecimals: 2},
|
|
tooltip: {valueSuffix: ' V',valueDecimals: 2},
|
|
- plotOptions: {spline: {marker: {enabled: true}}},
|
|
|
|
|
|
+ plotOptions: {series: {marker: {enabled: markerEnable}}, spline: {marker: {enabled: true}}},
|
|
legend: {enabled: false},
|
|
legend: {enabled: false},
|
|
series: [{
|
|
series: [{
|
|
name: "Voltage",
|
|
name: "Voltage",
|
|
@@ -142,7 +149,7 @@ Highcharts.chart('onu_temperature', {
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
yAxis: {labels: {format: '{value} ºC'},min: 0},
|
|
yAxis: {labels: {format: '{value} ºC'},min: 0},
|
|
tooltip: {valueSuffix: ' ºC',valueDecimals: 2},
|
|
tooltip: {valueSuffix: ' ºC',valueDecimals: 2},
|
|
- plotOptions: {spline: {marker: {enabled: true}}},
|
|
|
|
|
|
+ plotOptions: {series: {marker: {enabled: markerEnable}}, spline: {marker: {enabled: true}}},
|
|
legend: {enabled: false},
|
|
legend: {enabled: false},
|
|
series: [{
|
|
series: [{
|
|
name: "Temperature",
|
|
name: "Temperature",
|
|
@@ -159,7 +166,7 @@ Highcharts.chart('onu_status', {
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
yAxis: { categories: ['Offline', 'Online'], min: 0,stackLabels: {enabled: true,style: {fontWeight: 'bold',color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'}}},
|
|
yAxis: { categories: ['Offline', 'Online'], min: 0,stackLabels: {enabled: true,style: {fontWeight: 'bold',color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'}}},
|
|
tooltip: {formatter: onuStatusTooltip},
|
|
tooltip: {formatter: onuStatusTooltip},
|
|
- plotOptions: {column: {stacking: 'normal',dataLabels: {enabled: true,color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'}}},
|
|
|
|
|
|
+ plotOptions: {series: {marker: {enabled: markerEnable}}, column: {stacking: 'normal',dataLabels: {enabled: true,color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'}}},
|
|
legend: {enabled: false},
|
|
legend: {enabled: false},
|
|
series: [{
|
|
series: [{
|
|
name: 'Status',
|
|
name: 'Status',
|