Describe the feature:
Variable assignment should be possible in Timelion. Usually, some graphs include several time series and most of the time the same time series under different "conditions". It would be useful to be able to assign a variable(s) to them and then be able to refer to that (those) variable(s). For example:
a = .es(indexname, timefield, metric, split_condition), a.label("Some label"), a.if(gt, a.derivative(), 1, null), a.holt(alpha, betta, gamma, seasonality)
more background can be found at https://github.com/elastic/timelion/issues/87
Yes. Yet, there is a variable assignment in a text form, var a = "some text"
and is referenced only as text.
It would be great to be able to assign the entire timelion function to some variable
I also would like this feature. Would make it so much easier to right involved graphs that repeat big functions over and over
Any update ?
I want to plot two different time series alongside their difference and it's a pain to copy and paste them. Is there any other solution?
Would love to see that too, please !
Most helpful comment
I also would like this feature. Would make it so much easier to right involved graphs that repeat big functions over and over