Seems like this is a purely Vega question?
I'd look for suggestions at Vega forums ![]()
https://github.com/vega/vega: Looking for support, or interested in sharing examples and tips? Post to the Vega discussion forum or join the Vega slack organization! We also have examples available as Observable notebooks.