Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xAccessor offset for timeseries data #885

Closed
3 tasks done
nickofthyme opened this issue Oct 30, 2020 · 3 comments
Closed
3 tasks done

xAccessor offset for timeseries data #885

nickofthyme opened this issue Oct 30, 2020 · 3 comments
Labels
:data Data/series/scales related issue enhancement New feature or request :xy Bar/Line/Area chart related

Comments

@nickofthyme
Copy link
Collaborator

nickofthyme commented Oct 30, 2020

Is your feature request related to a problem? Please describe.
In timelion and APM, there are use cases where we want to display two timeseries with a given offset (i.e. a day, a week). Having a way to facilitate this kind of chart would be nice.

image

Describe the solution you'd like
An offset value on the series, some thing like xOffset, which will factor in this offset when rendering the geometry but use the original value for tooltip and interactions.

I don't know if this should be should be for non-time charts

Describe alternatives you've considered
Creating two series with the offset series matching the x values of the non-offset series. Then for the tooltip and interactions, inverting the offset to get the true value. This is less than ideal as this requires consumer to duplicate offset logic in many places.

Kibana Cross Issues
elastic/kibana#81147

elastic/kibana#98781 - time shift pr in Lens

Checklist

  • this request is checked against already exist requests
  • every related Kibana issue is listed under Kibana Cross Issues list
  • kibana cross issue tag is associated to the issue if any kibana cross issue is present
@nickofthyme nickofthyme added enhancement New feature or request :data Data/series/scales related issue :xy Bar/Line/Area chart related labels Oct 30, 2020
@nickofthyme nickofthyme added this to the Kibana 7.13 milestone Feb 4, 2021
@monfera
Copy link
Contributor

monfera commented Feb 4, 2021

It's in the class of lagging indicators, of which a specific time offset is only one case. There are other ones eg.

  • period difference (called "derivation" in Kibana)
  • windowed moving average
  • EWMA

Also, other indicators may include not just lookback but also lookahead, eg.

  • LOESS or LOWESS smoothing
  • radial basis function network (RBNF)

It'd be best to figure out the common approach and implement the solution within such an extensible indicator architecture

@nickofthyme
Copy link
Collaborator Author

@monfera any ideas on what the api would look like for this?

@markov00 markov00 removed this from the Kibana 7.13 milestone May 26, 2021
@markov00
Copy link
Member

The correlated issues are implemented/fixed in Kibana.
The custom solution for now is to pass a shifted dataset and use a custom tooltip to display the shifted time stamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:data Data/series/scales related issue enhancement New feature or request :xy Bar/Line/Area chart related
Projects
None yet
Development

No branches or pull requests

3 participants