-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Exploratory view] use percentages in distribution chart #103080
Conversation
Pinging @elastic/uptime (Team:uptime) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kibana app changes LGTM
@@ -396,10 +399,14 @@ export class LensAttributes { | |||
} | |||
} | |||
|
|||
getMainYAxis(layerConfig: LayerConfig) { | |||
getMainYAxis(layerConfig: LayerConfig, layerId: string, columnFilter: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I fully understand the idea of a mainYAxis and a childYAxis of yet. Can you explain to me how they relate to one another?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry again for confusing naming here. Seems like i need to clean up this part as well.
So as far as Lens is concerned there are no main/child axis. I coined these because i thought we will have a main series concept in lens.
Essentially child columns here means there are more than one column in the layer.
@@ -594,7 +608,7 @@ export class LensAttributes { | |||
layers: this.layerConfigs.map((layerConfig, index) => ({ | |||
accessors: [ | |||
`y-axis-column-layer${index}`, | |||
...Object.keys(this.getChildYAxises(layerConfig)), | |||
// ...Object.keys(this.getChildYAxises(layerConfig)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you intend to comment this out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, i removed it now.
string, | ||
CountIndexPatternColumn | MathIndexPatternColumn | OverallSumIndexPatternColumn | ||
> = { | ||
[`${yAxisColId}X0`]: countColumn, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the name column is still confusing to me, but I know it maps back to lens nicely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i will probably spend more time in tech sync or dedicated session to go over this concept.
💚 Build SucceededMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
History
To update your PR or re-run it, just comment with: cc @shahzad31 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smoke test went well; I'm ++ to @dominique in thinking we should continue sessions on this codebase as a lot of it seems arcane to me.
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Summary
fix #103469
should be merged/reviwed after #103214
Using lens formula overall count implemented to display percentages in Distribution charts on Y axis in exploratory view.