Hi,
I'm trying to have data that are relative to each one of my data. I've tried to use signal's data but i didn't managed to make them relative to one and only one value of my data.
i decided to add a field in my data values. now i'm trying to change the value of this field but i can't find a way to do so.
I've tried :
"signals": [
{
"name": "color_changer",
"value": "",
"on": [
{
"events": "rect:click",
"update": "datum.color === 'red' ? datum.color ='white' : datum.color ='red'"
}
]
}
],
But this does not work and result in a parsing error.
if anyone has an idea, some help would be appreciate. Thanks by advance.