Skip to content
Snippets Groups Projects
Commit b2a88f61 authored by Kasalehlia's avatar Kasalehlia
Browse files

improved readabilty of diagrams

parent 47a974aa
No related branches found
Tags v2020.2.2.1-ffbs-next
No related merge requests found
......@@ -2,14 +2,15 @@
var power = {{power}};
var devices = {{devices}};
$.plot("#diagrams-container", [
{ data: power, label: "Power consumption (W)" },
{ data: devices, label: "Network devices", yaxis: 2 }
{ data: power, label: "Power consumption (W)", color: '#b58900' },
{ data: devices, label: "Network devices", yaxis: 2, color: '#268bd2' }
], {
xaxes: [ { mode: "time" } ],
yaxes: [ { min: 0 }, {
alignTicksWithAxis: 1,
position: 'right'
alignTicksWithAxis: 0,
position: 'right',
min: 0
} ],
legend: { position: "sw" }
legend: { position: "sw", backgroundColor: '#eee8d5' }
});
</script>
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