how to plot the difference of two Timelion time series alongside them

539 views Asked by At

I have two long time series in timelion with different labels like example1 and example2:

.es(q='(supported_version : true) && NOT (token : Alerter) && (upstream: example )').mvavg(window=1h).divide(.es(q='(supported_version : true) && NOT (token : Alerter)  && NOT (_exists_:(enriched)) && upstream: example').mvavg(window=1h)).label('example1').yaxis(units='percent',tickDecimals=2).precision(5).lines(show=true,fill=0.5, width=2)

I want to plot both of them plus their difference.

currently to achieve the difference bar I copy and paste both of them as follows:

(...first time series...).subtract(...second time series...)

but It's two long and messy.

how can I plot the difference without copy and pasting them? (e.g. using their labels or by assigning them to two variables if it's possible)

0

There are 0 answers