Commit 9692590b authored by Paul Graydon's avatar Paul Graydon

wendelin_telecom_base: Improve ORS eNB KPI graphs

parent 464407f0
...@@ -21,21 +21,21 @@ ...@@ -21,21 +21,21 @@
i, i,
initial_success_data, initial_success_data,
added_success_data, added_success_data,
label_list = ["vt", "vInititialEPSBEstabSR_lo", "vInititialEPSBEstabSR_hi", "vAddedEPSBEstabSR_lo", "vAddedEPSBEstabSR_hi"]; label_list = ["vt", "vInitialEPSBEstabSR_lo", "vInitialEPSBEstabSR_hi", "vAddedEPSBEstabSR_lo", "vAddedEPSBEstabSR_hi"];
return new RSVP.Queue().push(function () { return new RSVP.Queue().push(function () {
return wendelin.getArrayRawSlice(gadget, option_dict.data_array_key); return wendelin.getArrayRawSlice(gadget, option_dict.data_array_key);
}) })
.push(function (result) { .push(function (result) {
var graph_data = nj.unpack(result.pick(null, label_list)), var graph_data = nj.unpack(result.pick(null, label_list)),
date = [], date = [],
vInititialEPSBEstabSR_lo = [], vInitialEPSBEstabSR_lo = [],
vInititialEPSBEstabSR_hi = [], vInitialEPSBEstabSR_hi = [],
vAddedEPSBEstabSR_lo = [], vAddedEPSBEstabSR_lo = [],
vAddedEPSBEstabSR_hi = []; vAddedEPSBEstabSR_hi = [];
for (i = 0; i < graph_data.length; i += 1) { for (i = 0; i < graph_data.length; i += 1) {
date.push(new Date(graph_data[i][0] * 1000)); date.push(new Date(graph_data[i][0] * 1000));
vInititialEPSBEstabSR_lo.push(graph_data[i][1]); vInitialEPSBEstabSR_lo.push(graph_data[i][1]);
vInititialEPSBEstabSR_hi.push(graph_data[i][2]); vInitialEPSBEstabSR_hi.push(graph_data[i][2]);
vAddedEPSBEstabSR_lo.push(graph_data[i][3]); vAddedEPSBEstabSR_lo.push(graph_data[i][3]);
vAddedEPSBEstabSR_hi.push(graph_data[i][4]); vAddedEPSBEstabSR_hi.push(graph_data[i][4]);
} }
...@@ -43,24 +43,24 @@ ...@@ -43,24 +43,24 @@
{ {
x: date, x: date,
mode: 'lines+markers', mode: 'lines+markers',
y: vInititialEPSBEstabSR_lo, y: vInitialEPSBEstabSR_lo,
type: 'scatter', type: 'scatter',
line: {shape: 'hv'}, line: {shape: 'hv'},
hovertemplate: 'Date: %{x}<br>Rate: %{y}%', hovertemplate: 'Date: %{x}<br>Rate: %{y}%',
name: 'InititialEPSBEstabSR' name: 'InitialEPSBEstabSR'
}, },
{ {
x: date, x: date,
mode: 'lines', mode: 'lines+markers',
fill: 'tonexty', fill: 'tonexty',
y: vInititialEPSBEstabSR_hi, y: vInitialEPSBEstabSR_hi,
type: 'scatter',
line: { line: {
color: "#6cb9e5", color: "#6cb9e5",
shape: 'hv' shape: 'hv'
}, },
name: 'InititialEPSBEstabSR uncertainty', hovertemplate: 'Date: %{x}<br>Rate: %{y}%',
type: 'scatter', name: 'InitialEPSBEstabSR uncertainty'
hoverinfo: 'none'
} }
]; ];
added_success_data = [ added_success_data = [
...@@ -75,16 +75,16 @@ ...@@ -75,16 +75,16 @@
}, },
{ {
x: date, x: date,
mode: 'lines', mode: 'lines+markers',
fill: 'tonexty', fill: 'tonexty',
y: vAddedEPSBEstabSR_hi, y: vAddedEPSBEstabSR_hi,
type: 'scatter',
line: { line: {
color: "#6cb9e5", color: "#6cb9e5",
shape: 'hv' shape: 'hv'
}, },
name: 'AddedEPSBEstabSR uncertainty', hovertemplate: 'Date: %{x}<br>Rate: %{y}%',
type: 'scatter', name: 'AddedEPSBEstabSR uncertainty'
hoverinfo: 'none'
} }
]; ];
Plotly.newPlot( Plotly.newPlot(
......
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1018.50753.19274.8021</string> </value> <value> <string>1018.61980.60679.28364</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1724247887.79</float> <float>1724920139.77</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<script src="ndarray_bundle.js" type="text/javascript"></script> <script src="ndarray_bundle.js" type="text/javascript"></script>
<script src="wendelin.js" type="text/javascript"></script> <script src="wendelin.js" type="text/javascript"></script>
<script src="plotly_strict_v2.34.0.js" type="text/javascript"></script> <script src="plotly_strict_v2.34.0.js" type="text/javascript"></script>
<script src="gadget_ors_e_utran_ip_throughput.js" type="text/javascript"></script> <script src="gadget_ors_e_utran_ip_throughput_kpi.js" type="text/javascript"></script>
<link href="gadget_ors_kpi.css" rel="stylesheet" type="text/css"> <link href="gadget_ors_kpi.css" rel="stylesheet" type="text/css">
</head> </head>
<body> <body>
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</item> </item>
<item> <item>
<key> <string>default_reference</string> </key> <key> <string>default_reference</string> </key>
<value> <string>gadget_ors_e_utran_ip_throughput.html</string> </value> <value> <string>gadget_ors_e_utran_ip_throughput_kpi.html</string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1018.50748.16129.18005</string> </value> <value> <string>1018.60805.51967.7987</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1724246227.7</float> <float>1724849643.71</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -61,19 +61,23 @@ ...@@ -61,19 +61,23 @@
line: color, line: color,
name: 'QCI ' + qci, name: 'QCI ' + qci,
legendgroup: 'legendgroup' + qci, legendgroup: 'legendgroup' + qci,
hovertemplate: 'Date: %{x}<br>Link Speed: %{y} Mbit/s' hovertemplate: 'Date: %{x}<br>Minimum Link Speed: %{y} Mbit/s'
}); });
data_list.push({ data_list.push({
x: date, x: date,
mode: 'lines', marker: {
size: 4
},
mode: 'lines+markers',
y: hi, y: hi,
type: 'scatter', type: 'scatter',
line: color, line: color,
opacity: 0.3, opacity: 0.3,
showlegend: false,
fill: 'tonexty', fill: 'tonexty',
name: 'QCI ' + qci,
legendgroup: 'legendgroup' + qci, legendgroup: 'legendgroup' + qci,
hoverinfo: 'none' showlegend: false,
hovertemplate: 'Date: %{x}<br>Maximum Link Speed: %{y} Mbit/s'
}); });
} }
return data_list; return data_list;
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
</item> </item>
<item> <item>
<key> <string>default_reference</string> </key> <key> <string>default_reference</string> </key>
<value> <string>gadget_ors_e_utran_ip_throughput.js</string> </value> <value> <string>gadget_ors_e_utran_ip_throughput_kpi.js</string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1018.50754.42943.1024</string> </value> <value> <string>1018.60794.3206.50773</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1724247880.82</float> <float>1724849600.03</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
</item> </item>
<item> <item>
<key> <string>gadget_url</string> </key> <key> <string>gadget_url</string> </key>
<value> <string>gadget_ors_e_utran_ip_throughput.html</string> </value> <value> <string>gadget_ors_e_utran_ip_throughput_kpi.html</string> </value>
</item> </item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment