Thanks a lot for your time and examples, Roy.
They are interesting, but hard to apply to my current need as a newcomer to D3/Vega.
I have prepared a sample JSON file, which shows the kind of data that comes from the database. There is also a more detailed explanation of the requirements in a comment in the file.
Is it possible to make a recommendation on what approach to use, based on this data?
Thanks again.