Hello,
I am displaying several charts in an aggregated line diagram. Node-red-contrib-aggregator is used here. However, the charts are displayed in a very thick line width. Is it possible to make the line thickness thinner?
I have integrated ui_control into my function. The line thickness has improved. However, I get bold measuring points. In addition, a background color is added to the individual graphs.
function:
var topic;
var payload;
var ui_control;
for (let i = 0; i < 6; i++) {
switch (i) {
case 0:
topic = null;
payload = []; // clear chart
break;
case 1: topic = 'PV [W]';
payload = 0;
break;
case 2: topic = 'Hausverbrauch [W]';
payload = 0;
break;
case 3: topic = 'Netz [W]';
payload = 0;
break;
case 4: topic = 'Akku [W]';
payload = 0;
break;
case 5: topic = 'Wallbox [W]';
payload = 0;
break;
}
**ui_control = { "options": { "elements": { "line": { "borderWidth": 1 } } } }**
var newmsg = {payload:payload,topic:topic,ui_control:ui_control};
node.send(newmsg);
}
return;