Hello everyone,
I was wondering whether it is possible to use a specific value from "data" within a signal - for instance, to define the initial value of a slider. I tried this:
"data": [
{
"name": "testvalue",
"values": [{"first": "40"}]
}
],
"signals": [
{
"name": "testslider",
"value": {"signal": "data('testvalue')[0].first"},
"bind": {
"input": "range",
"min": 0,
"max": 100,
"step": 1
}
}
]
But it does not work - I get [Object object] as the initial value. However, this works perfectly fine in, for instance, x-coordinate-values within marks. Is there another solution to use values from other sources within signal definitions?
Thanks,
vega_user