|
@@ -0,0 +1,106 @@
|
|
|
+<div class="row">
|
|
|
+ <div class="col-md-12">
|
|
|
+ <div id="cmts_cablemodem_bandwidth" style="height: 400px;"></div>
|
|
|
+
|
|
|
+ <div id="cmts_cablemodem_rf" style="height: 400px;"></div>
|
|
|
+
|
|
|
+ <div class="clearfix" style="width: 100%; background-color:white; padding:0 5px">
|
|
|
+ <div id="cmts_cablemodem_snr" style="height: 400px; float: left; width:49%"></div>
|
|
|
+ <div id="cmts_cablemodem_microreflection" style="height: 400px; float: right; width:49%"></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ {# <div id="olt_onu_status" style="height: 400px;"></div> #}
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+<script type="text/javascript">
|
|
|
+
|
|
|
+Highcharts.chart('cmts_cablemodem_bandwidth', {
|
|
|
+ chart: {type: 'spline'},
|
|
|
+ title: {text: 'Bandwidth Cablemodem'},
|
|
|
+ subtitle: {text: 'IN Bandwidth / OUT 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: {spline: {marker: {enabled: true}}},
|
|
|
+ series: [{
|
|
|
+ name: "OUT Bandwidth",
|
|
|
+ data: {{series['out_bandwidth']['data']|json_encode}},
|
|
|
+ color: '#e24d42'
|
|
|
+ },{
|
|
|
+ name: "IN Bandwidth",
|
|
|
+ data: {{series['in_bandwidth']['data']|json_encode}},
|
|
|
+ color: '#3f6833'
|
|
|
+ }]
|
|
|
+});
|
|
|
+
|
|
|
+Highcharts.chart('cmts_cablemodem_rf', {
|
|
|
+ chart: {type: 'area'},
|
|
|
+ title: {text: 'Radio Frequency'},
|
|
|
+ subtitle: {text: 'TX /RX Power'},
|
|
|
+ xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
+ yAxis: {labels: {format: '{value} dB'},min: null},
|
|
|
+ tooltip: {valueSuffix: ' dB',valueDecimals: 2},
|
|
|
+ plotOptions: {spline: {marker: {enabled: true}}},
|
|
|
+ series: [{
|
|
|
+ name: "TX Power",
|
|
|
+ data: {{series['tx']['data']|json_encode}},
|
|
|
+ color: '#6ed0e0',
|
|
|
+ fillOpacity: 0.2
|
|
|
+ },{
|
|
|
+ name: "RX Power",
|
|
|
+ data: {{series['rx']['data']|json_encode}},
|
|
|
+ color: '#4841AD',
|
|
|
+ fillOpacity: 0.2
|
|
|
+ }]
|
|
|
+});
|
|
|
+
|
|
|
+Highcharts.chart('cmts_cablemodem_snr', {
|
|
|
+ chart: {type: 'area'},
|
|
|
+ title: {text: 'SNR'},
|
|
|
+ subtitle: {text: 'SNR'},
|
|
|
+ xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
+ yAxis: {labels: {format: '{value} V'},min: 0},
|
|
|
+ tooltip: {valueSuffix: ' V',valueDecimals: 2},
|
|
|
+ plotOptions: {spline: {marker: {enabled: true}}},
|
|
|
+ series: [{
|
|
|
+ name: "Snr",
|
|
|
+ data: {{series['signal']['data']|json_encode}},
|
|
|
+ color: '#4841AD',
|
|
|
+ fillOpacity: 0.2
|
|
|
+ }]
|
|
|
+});
|
|
|
+
|
|
|
+Highcharts.chart('cmts_cablemodem_microreflection', {
|
|
|
+ chart: {type: 'area'},
|
|
|
+ title: {text: 'Microreflection'},
|
|
|
+ subtitle: {text: 'Microreflection'},
|
|
|
+ xAxis: {type: 'datetime',dateTimeLabelFormats: {month: '%e. %b',year: '%b'},title: {text: 'Date'}},
|
|
|
+ yAxis: {labels: {format: '{value} ºC'},min: 0},
|
|
|
+ tooltip: {valueSuffix: ' ºC',valueDecimals: 2},
|
|
|
+ plotOptions: {spline: {marker: {enabled: true}}},
|
|
|
+ series: [{
|
|
|
+ name: "Microreflection",
|
|
|
+ data: {{series['microreflection']['data']|json_encode}},
|
|
|
+ color: '#B75426',
|
|
|
+ fillOpacity: 0.2
|
|
|
+ }]
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
+{# Highcharts.chart('olt_onu_status', {
|
|
|
+ chart: {type: 'area'},
|
|
|
+ title: {text: 'Estatus'},
|
|
|
+ subtitle: {text: 'Online / Offline'},
|
|
|
+ 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'}}},
|
|
|
+ tooltip: {formatter: onuStatusTooltip},
|
|
|
+ plotOptions: {column: {stacking: 'normal',dataLabels: {enabled: true,color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'}}},
|
|
|
+ series: [{
|
|
|
+ name: 'Status',
|
|
|
+ data: {{series['status']['data']|json_encode}},
|
|
|
+ color: '#3f6833'
|
|
|
+ }]
|
|
|
+}); #}
|
|
|
+
|
|
|
+</script>
|