Use time filter on auto-interval date histogram

Hello,

I'm using version 8.6.0 of elastic cloud.

I'm trying to develop a chart similar to the TSVB time series, but the way my data is loaded I need to do it in Vega. I'm using auto-interval date histogram to separate my data into buckets, but it only does this for my field and not through the selected time filter, is there a way to do this?

For example, my time filter is for Last 30 days, if my "datetime" field only has data from the last 20 days, I would like the first 10 days to have an empty bucket, but instead it separates only the last 20 days (because that is the period that has data).

If this is not possible, is there any expression that can be used to get the time interval from the time filter?

Can you post the Vega spec?

It really depends on how the spec is defined:

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