I have created vega-lite graphs using the view API. My general procedure is to pull data from a database and place it into a JSON array and then feed the array to the vega v