Changing the line width in a multi line chart

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 use nodered 3.1.9

Regards
Joachim

Hey guys, it can't be that nobody can help me here. Get off your Olympus and help a beginner

Maybe this thread can help you out

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;

The diagram then looks like this:

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```)

``` 
   code goes here 
```

You can edit and correct your post by clicking the pencil :pencil2: icon.

See this post for more details - How to share code or flow json

As to your issue, try using the ui_control object from the post marked as the solution.

Thanks for the info and yes, it looks better now