I'm trying to change the transparacy of an Svg rectangle element in the svg node from Bart, but can't get it working.
Tried almost every combination fill-opacity with underscore or with dash, the attribute value as string or int. But it will not work, nothing changes regarding the opacity.
Rest of the payload is working fine.
msg.payload = [
{
"command": "update_style",
"selector": "#rect_2509",
"attributeName": "fill",
"attributeValue": achtergrondkleur
},
{
"command": "set_attribute",
"selector": "#rect_2509",
"attributeName": "fill-opacity",
"attributeValue": "10"
},
{
"command": "update_text",
"selector": "#txt_2509",
"textContent": pcOnline
}
]
