I'm attempting to make a trellis bar chart, with the grand total shown faintly behind each chart - see this image.
I've successfully managed to create this a verbose spec, but I want to make this more succinct, by using 'repeat' with a filter. Here is the working version.
Here is my version which almost works, but I can't work out how to allow the filter to access the 'repeat' variable.
How can I access the variable specified in 'repeat' to correctly filter the data?
I have tried the following but it doesn't work
{
"transform": [
{"filter": "datum.gender == repeat"}
]
}