Node red dashboard chart background color

The chart background seems following the theme from the node - red. Is there any way to replacing it to some other color other than the default theme? Also, is it also possible to change the line width like we did in chartjs? I havent tried dashboard 2 yet but Im just wondering if this is possible in the first place.
Thank you very much!

If you read the sidebar help text it talks about class, if you give the chart node a class name, You can then set the styling of the widget using a template node and adding css to target the class of the chart node. A web search will give you much info on styling, eg background and class. Also there many topics if you search the forum Search results for 'css dashboard widget' - Node-RED Forum

1 Like

Follow CSS override technique

.chart-with-my-background canvas{
    background-color: red;
}
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.