Use customLabel if it exists#6511
Conversation
| }, | ||
| avg: { | ||
| valProp: 'avg', | ||
| title: 'Average' |
There was a problem hiding this comment.
Maybe we want + label here too?
There was a problem hiding this comment.
There was a problem hiding this comment.
Yeah, but you'd usually use the custom label to describe what sort of data the line represents. The design of the customLabel property really isn't ideal for multi value metrics unfortunately :-(
|
So i didn't even realize that adding "Standard Deviation" as a metric adds its own "Average" column. I'm not sure why... we have an explicit option for adding "Average" which has its own custom label (see screenshot). Just brainstorming, here are some possible options I see: (1) Apply the label entered for standard deviation custom label box in the "Lower Standard Deviation or [metric]" and "Upper Standard Deviation of [metric]" columns only by replacing only "Standard Deviation of [metric]" My preference would be doing (1) and optionally (3), but would love others to weigh in. |
|
I believe the reason std deviation currently add its own average is because early versions of kibana didn't support more than one metric agg per chart, but now of course they do. Agree with @tbragin, let's do 1, but also do 3. |
|
Also, do 3 in a different pull |
|
Thanks @rashidkpc and @tbragin. This PR implements (1) but I want to add a unit test for it. So removing review label for now. |
|
Unit test added (with much help from @Bargs — thank you!) |
|
jenkins, test it |
|
LGTM |
Fix small mistake made in PR 6511
Use customLabel if it exists
Fix small mistake made in PR 6511

Fixes #6407