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

Moving average option for xy series #852

Open
3 tasks done
flash1293 opened this issue Oct 6, 2020 · 1 comment
Open
3 tasks done

Moving average option for xy series #852

flash1293 opened this issue Oct 6, 2020 · 1 comment
Labels
:data Data/series/scales related issue enhancement New feature or request :xy Bar/Line/Area chart related

Comments

@flash1293
Copy link

flash1293 commented Oct 6, 2020

Is your feature request related to a problem? Please describe.
For granular time series it's often beneficial to smooth out the data over time.

Describe the solution you'd like
Similar to the fitting function definitions, I would like to be able to specify moving average on a series of an xy chart. For an initial version just specifying the window size and gap policy would be enough:

<AreaSeries {...props} movingAverage={{ mode: 'simple', windowSize: 5, gapPolicy: 'insert_zero' }} />

Describe alternatives you've considered
This can also be solved on the consumer side, but as there are some hairy details around how moving average is implemented and it would be helpful to have a standard implementation for this for all elastic-charts in Kibana.

Additional context

There are some additional details to define, but I don't have a strong opinion on them. I hope we can figure those out using comments on this issue.

Kibana Cross Issues

Checklist

Delete any items that are not applicable to this feature request.

  • 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
@flash1293 flash1293 added enhancement New feature or request kibana cross issue Has a Kibana issue counterpart labels Oct 6, 2020
@flash1293 flash1293 removed the kibana cross issue Has a Kibana issue counterpart label Oct 6, 2020
@flash1293
Copy link
Author

Quick update on urgency: Based on recent discussions we will probably not use this setting in Lens but use an expression function implementing the same functionality to be able to use it outside of the xy chart type. I removed the kibana cross issue label due to that. I think however it's still a nice feature in general.

@markov00 markov00 added :data Data/series/scales related issue :xy Bar/Line/Area chart related labels Oct 7, 2020
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

2 participants