[Lens] Add log and sqrt scale#131940
Conversation
|
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
There was a problem hiding this comment.
Code LGTM, I tested all the XY charts and it works fine!
One question. I see that when I create a vertical stacked bar and change some axis settings (for example the orientation) and change to vertical bar for example, the settings are kept. But this doesn't happen for the scale, it initializes back to Linear. Is this on purpose?
No, good catch, I'm going to fix that |
|
@stratoula Adjusted - I was missing them in the suggestion logic. |
|
Great Joe! Now they are transferred! It seems that our XY plugin is quite big. This is irrelevant with this PR but I see the failure here. Maybe something that the unified renderers team should improve? |
💚 Build SucceededMetrics [docs]Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: |
|
@flash1293 Do we handle linear binary automatically or is there another reason that scale type wasn't added here too? |
|
@nickofthyme yes, if the current datatable column has a byte formatter and the assigned axis uses linear, then it will switch to linear binary |
Fixes #98186
By adding a new axis scale setting to left and right axis:

Technical details
There used to be a
scaleTypesetting already on the data layer, but this isn't a good approach to configure as multiple layers will be mapped to the same axes so these settings would overwrite each other. This PR removes the layer y scale setting and moves it to the chart level similar to other "left" and "right" axis settings