Transform Vega Data

How to transform data that I already get from index like this:

Into the format like this:

So the Type and Value can be separated in different column. I only know how to do this in Vega-Lite but not in Vega.

This can be done through the project transform