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

wendelin_telecom_base: Improve ORS eNB KPI graphs

parent 464407f0
......@@ -21,21 +21,21 @@
i,
initial_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 wendelin.getArrayRawSlice(gadget, option_dict.data_array_key);
})
.push(function (result) {
var graph_data = nj.unpack(result.pick(null, label_list)),
date = [],
vInititialEPSBEstabSR_lo = [],
vInititialEPSBEstabSR_hi = [],
vInitialEPSBEstabSR_lo = [],
vInitialEPSBEstabSR_hi = [],
vAddedEPSBEstabSR_lo = [],
vAddedEPSBEstabSR_hi = [];
for (i = 0; i < graph_data.length; i += 1) {
date.push(new Date(graph_data[i][0] * 1000));
vInititialEPSBEstabSR_lo.push(graph_data[i][1]);
vInititialEPSBEstabSR_hi.push(graph_data[i][2]);
vInitialEPSBEstabSR_lo.push(graph_data[i][1]);
vInitialEPSBEstabSR_hi.push(graph_data[i][2]);
vAddedEPSBEstabSR_lo.push(graph_data[i][3]);
vAddedEPSBEstabSR_hi.push(graph_data[i][4]);
}
......@@ -43,24 +43,24 @@
{
x: date,
mode: 'lines+markers',
y: vInititialEPSBEstabSR_lo,
y: vInitialEPSBEstabSR_lo,
type: 'scatter',
line: {shape: 'hv'},
hovertemplate: 'Date: %{x}<br>Rate: %{y}%',
name: 'InititialEPSBEstabSR'
name: 'InitialEPSBEstabSR'
},
{
x: date,
mode: 'lines',
mode: 'lines+markers',
fill: 'tonexty',
y: vInititialEPSBEstabSR_hi,
y: vInitialEPSBEstabSR_hi,
type: 'scatter',
line: {
color: "#6cb9e5",
shape: 'hv'
},
name: 'InititialEPSBEstabSR uncertainty',
type: 'scatter',
hoverinfo: 'none'
hovertemplate: 'Date: %{x}<br>Rate: %{y}%',
name: 'InitialEPSBEstabSR uncertainty'
}
];
added_success_data = [
......@@ -75,16 +75,16 @@
},
{
x: date,
mode: 'lines',
mode: 'lines+markers',
fill: 'tonexty',
y: vAddedEPSBEstabSR_hi,
type: 'scatter',
line: {
color: "#6cb9e5",
shape: 'hv'
},
name: 'AddedEPSBEstabSR uncertainty',
type: 'scatter',
hoverinfo: 'none'
hovertemplate: 'Date: %{x}<br>Rate: %{y}%',
name: 'AddedEPSBEstabSR uncertainty'
}
];
Plotly.newPlot(
......
......@@ -238,7 +238,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1018.50753.19274.8021</string> </value>
<value> <string>1018.61980.60679.28364</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>1724247887.79</float>
<float>1724920139.77</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -13,7 +13,7 @@
<script src="ndarray_bundle.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="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">
</head>
<body>
......
......@@ -73,7 +73,7 @@
</item>
<item>
<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>
<key> <string>description</string> </key>
......@@ -240,7 +240,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1018.50748.16129.18005</string> </value>
<value> <string>1018.60805.51967.7987</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>1724246227.7</float>
<float>1724849643.71</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -61,19 +61,23 @@
line: color,
name: 'QCI ' + 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({
x: date,
mode: 'lines',
marker: {
size: 4
},
mode: 'lines+markers',
y: hi,
type: 'scatter',
line: color,
opacity: 0.3,
showlegend: false,
fill: 'tonexty',
name: 'QCI ' + qci,
legendgroup: 'legendgroup' + qci,
hoverinfo: 'none'
showlegend: false,
hovertemplate: 'Date: %{x}<br>Maximum Link Speed: %{y} Mbit/s'
});
}
return data_list;
......
......@@ -75,7 +75,7 @@
</item>
<item>
<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>
<key> <string>description</string> </key>
......@@ -238,7 +238,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1018.50754.42943.1024</string> </value>
<value> <string>1018.60794.3206.50773</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>1724247880.82</float>
<float>1724849600.03</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -211,7 +211,7 @@
</item>
<item>
<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>
<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