Charts line colors

Hi,

I’m not sure if I understood correctly the instruction to change the color of the lines within a chart. If I put in the field ‘variable’ a JSON containing the metadata, I receive an error saying: “Variable field should NOT contain special characters such as *?!<>.-=$ or space”

Where exactly can I change the color of a line?

Thank you!

Hi, @bruno.

Just to be sure, you are trying to change the color of the lines of a chart widget, right?

The only value that you can send in the field “variable” is the variable name.
Here’s an example:
{
“variable”: “temperature”,
“value”: “28”,
“unit”: “C”,
“metadata”: {
“color”: “#ff0000
}
}

Let me know if this helps you.