How to set moving average in TSVB

I am trying to set moving average that set in timelion in TSVB.
window is the time unit in timelion, what is the unit of window in TSVB?
What if I want to set window to yesterday?

timelion query:
.es(index=indexname, timefield=@timestamp).movingaverage(window=1d,
position=left).lines(2).color(#ffc952).label('average traffic of last day')

TSVB setting:

Hey @Yungyoung_Ok, which "interval" were you using in Timelion? If you were using "one hour", then in TSVB you'd set the "interval" to 1h in TSVB:

and the window size to 24:

thanks a lot!