I would like to use 2 values in a Vega Text Mark, but there is little documentation for this old version of Vega (Vega 1.5.0).
I would like it to show up something resembling: Name: Value, but I cant find a way to get it to work.
This is my current definition JSON implementation, and it shows the text fine, I just can't get it to show another
"text": { "field": "data.name" },
I have tried something like this to no avail, any advice?
"text": {"field": "data.name", "field": "data.value" },
Have now also tried using the transform calculate as suggested, using it as such within the transform block. And referring to tooltip in the text field. This has also not worked.
{
"calculate": "data.name + ':' + data.value", "as": "tooltip"
}
Conclusion: In Vega 1.5.0 this is seemingly not possible, Following suggestions has not resulted in the desired solution. If you are looking to do this in such an old version of Vega, I would recommend you update Vega to a newer version.