Tomo_M
(Tomohiro Mitani)
June 2, 2022, 8:54am
2
What kind of visualizations do you use?
If Lens of 7.9 or higher, there are Missing values option to fill gap.
elastic:master
← flash1293:lens/fitting-functions
opened 03:57PM - 24 Jun 20 UTC
Fixes https://github.com/elastic/kibana/issues/68403
This PR exposes the `ela… stic-charts` fitting functions (except for "Explicit") as a chart-level setting of the xy-chart.
<img width="968" alt="Screenshot 2020-06-25 at 12 04 09" src="https://user-images.githubusercontent.com/1508364/85699794-1800fe00-b6dc-11ea-930d-50febe9654eb.png">
The popover for now only contains a select for the fitting function, other options like color palette will be part of the same popover in a later iteration
<img width="431" alt="Screenshot 2020-06-26 at 09 42 22" src="https://user-images.githubusercontent.com/1508364/85833063-6f14da80-b791-11ea-9278-b8c68e711e9c.png">
If there is no line or area series, the select will be disabled (state will still be carried along)
<img width="464" alt="Screenshot 2020-06-26 at 09 42 45" src="https://user-images.githubusercontent.com/1508364/85833078-73d98e80-b791-11ea-8e2c-806bf18cbb7f.png">
For Pie charts there is no popover menu in the toolbar (if it gets added later because of other features, it won't contain the select at all)
## Architecture
On an expression level, there is a new optional string argument `fittingFunction` on the `lens_xy_chart`, taking all available options. If no value is provided, it defaults to `None`, maintaining the old behavior - this means no migration is necessary, saved Lens visualizations will simply run an expression without a `fittingFunction` argument.
2 Likes
Thank you for your reply.
Im using visualizations 'Line'
1 Like
system
(system)
Closed
July 1, 2022, 2:09am
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.