I am trying to create a Vega/Vega-lite data fetch based on a parameter/transform/signal defined later down in the chart specification. Is this possible? It would be of tremendous use with fetching data from parametric APIs. E.g. instead of:
"data" : {"url" : "https://api.carbonintensity.org.uk/intensity/2021-12-04/fw48h"}
I would like:
"data" : {"url": "'https://api.carbonintensity.org.uk/intensity/'+myDate+'/fw48h'"}
"transform": [ {"calculate": "'2021-12-04'", "as":"myDate"} ]