Vega Visualization and custom data source

Is there way to parse the selected time range or query to the data url in a Vega visualization if the data source is not Elasticsearch?

e.g.

{
    "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
    "data": {
        "url": http://example.com/?query=%kql%&from=%min%&to=%max%
    },
...
}

There are 2 variables {"%timefilter%": "min"} and {"%timefilter%": "max"} that will return the values in the timefilter but I don't think you can use in the url setting (only within the body). There is nothing to return the KQL query also.

So I would say that this wouldn't be possible.

Ok. Thank you!

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.