Using multiple input data on vega chart lite

Hi there! I’ve been working with charts in Workshop and previously asked the community about configuring an XY chart and was able to achieve the outcome I wanted. Now, I’m exploring Vega charts because they offer much customization.

However, I’m running into a challenge: I can only display data from one input data at a time. I’d like to use multiple data inputs in a single Vega chart, but I haven’t been able to configure it successfully. I already checked vega documentation but still I cannot find the answer I am looking for.

How can I display data from multiple inputs in a Vega chart within Workshop? Thank you.

You should be able to edit the data configuration in the widget editor on the left hand side on the screen. You will be able to add an arbitrary number of inputs and can then use them in your vega spec accordingly. You can then check out the workshop vega spec documentation to understand how to use the different inputs together.