Skip to content
Snippets Groups Projects
Commit 1a7fe9f3 authored by Emanuele Laface's avatar Emanuele Laface
Browse files

Fix of the fix

parent 1b47ec05
No related branches found
No related tags found
No related merge requests found
Pipeline #39163 passed
...@@ -30,6 +30,34 @@ ...@@ -30,6 +30,34 @@
} }
] ]
}, },
{
"title": "Time Selector",
"width": 1,
"row": {
"1": 7,
"3": 7,
"4": 7,
"5": 7,
"7": 7
},
"col": {
"1": 1,
"3": 1,
"4": 1,
"5": 1,
"7": 1
},
"col_width": 2,
"widgets": [
{
"type": "html",
"settings": {
"html": "<script>\n function setDatasource(event) {\n\t\tfreeboard.showLoadingIndicator(true);\n\t};\n</script>\n<div style=\"position:relative;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;\">\n <select style=\"padding:0px 0px\" onchange=\"setDatasource()\" id=\"time-series\">\n <option value=\"2w\">Two Weeks</option>\n <option value=\"1w\">One Week</option>\n <option value=\"2d\">Two Days</option>\n <option value=\"1d\">One Day</option>\n <option value=\"live\">Live</option>\n </select>\n</div>",
"height": 1
}
}
]
},
{ {
"title": "Levels", "title": "Levels",
"width": 1, "width": 1,
...@@ -37,13 +65,15 @@ ...@@ -37,13 +65,15 @@
"1": 11, "1": 11,
"3": 11, "3": 11,
"4": 11, "4": 11,
"5": 1 "5": 1,
"7": 1
}, },
"col": { "col": {
"1": 1, "1": 1,
"3": 1, "3": 1,
"4": 1, "4": 1,
"5": 5 "5": 5,
"7": 5
}, },
"col_width": 2, "col_width": 2,
"widgets": [ "widgets": [
...@@ -54,6 +84,7 @@ ...@@ -54,6 +84,7 @@
"legend": true, "legend": true,
"height": 4, "height": 4,
"value": "var series = document.getElementById(\"time-series\").value;\ndata = [\n {label: 'TS2-010CRM:Cryo-LT-001', data: datasources[\"TS2\"][\"TS2-010CRM:Cryo-LT-001:MeasValue\"][series]},\n {label: 'TS2-010CRM:Cryo-LT-002', data: datasources[\"TS2\"][\"TS2-010CRM:Cryo-LT-002:MeasValue\"][series]},\n];\nfreeboard.showLoadingIndicator(false);\nreturn data;", "value": "var series = document.getElementById(\"time-series\").value;\ndata = [\n {label: 'TS2-010CRM:Cryo-LT-001', data: datasources[\"TS2\"][\"TS2-010CRM:Cryo-LT-001:MeasValue\"][series]},\n {label: 'TS2-010CRM:Cryo-LT-002', data: datasources[\"TS2\"][\"TS2-010CRM:Cryo-LT-002:MeasValue\"][series]},\n];\nfreeboard.showLoadingIndicator(false);\nreturn data;",
"xticks": "6",
"x_timestamp": true, "x_timestamp": true,
"zoom": "" "zoom": ""
} }
...@@ -70,7 +101,8 @@ ...@@ -70,7 +101,8 @@
"4": 7, "4": 7,
"5": 7, "5": 7,
"6": 7, "6": 7,
"7": 7 "7": 7,
"8": 7
}, },
"col": { "col": {
"1": 1, "1": 1,
...@@ -79,7 +111,8 @@ ...@@ -79,7 +111,8 @@
"4": 3, "4": 3,
"5": 2, "5": 2,
"6": 2, "6": 2,
"7": 2 "7": 2,
"8": 2
}, },
"col_width": 1, "col_width": 1,
"widgets": [ "widgets": [
...@@ -114,7 +147,8 @@ ...@@ -114,7 +147,8 @@
"3": 21, "3": 21,
"4": 7, "4": 7,
"6": 7, "6": 7,
"7": 7 "7": 7,
"8": 7
}, },
"col": { "col": {
"1": 1, "1": 1,
...@@ -122,7 +156,8 @@ ...@@ -122,7 +156,8 @@
"3": 1, "3": 1,
"4": 4, "4": 4,
"6": 3, "6": 3,
"7": 3 "7": 3,
"8": 3
}, },
"col_width": 1, "col_width": 1,
"widgets": [ "widgets": [
...@@ -147,32 +182,6 @@ ...@@ -147,32 +182,6 @@
} }
} }
] ]
},
{
"title": "Time Selector",
"width": 1,
"row": {
"1": 7,
"3": 7,
"4": 7,
"7": 7
},
"col": {
"1": 1,
"3": 1,
"4": 1,
"7": 1
},
"col_width": 2,
"widgets": [
{
"type": "html",
"settings": {
"html": "<script>\n function setDatasource(event) {\n\t\tfreeboard.showLoadingIndicator(true);\n\t};\n</script>\n<div style=\"position:relative;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;\">\n <select style=\"padding:0px 0px\" onchange=\"setDatasource()\" id=\"time-series\">\n <option value=\"2w\">Two Weeks</option>\n <option value=\"1w\">One Week</option>\n <option value=\"2d\">Two Days</option>\n <option value=\"1d\">One Day</option>\n <option value=\"live\">Live</option>\n </select>\n</div>",
"height": 1
}
}
]
} }
], ],
"datasources": [ "datasources": [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment