I am working on a prototype dashboard and had fun so far building it with Vega Lite. However, I hit a road block on the following points:
Check the code here
layer
config as an array inside the spec
object and provide multiple marks for it.mark
config with value text
inside the layer
. So, that will help to add the labels.theta
config. To fix that you need to add a resolve
config. Check the documentation for resolve config.selection
configuration given in this tutorial has been added in the layer, where the mark bar
is provided.transform
config. Its use is somewhat similar to the calculate
config which was used in your code. Check the documentation for filter transform.