-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
[bubble] Fixing ad-hoc metric labels #5630
[bubble] Fixing ad-hoc metric labels #5630
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5630 +/- ##
==========================================
+ Coverage 63.44% 63.49% +0.04%
==========================================
Files 360 360
Lines 22890 22890
Branches 2548 2551 +3
==========================================
+ Hits 14523 14533 +10
+ Misses 8352 8342 -10
Partials 15 15
Continue to review full report at Codecov.
|
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.
What about non ad-hoc metric field? seems like we should first test if fd.x
is an object
or it is just a string
s += row(fd.x, formatter(p.x)); | ||
s += row(fd.y, formatter(p.y)); | ||
s += row(fd.size, formatter(p.size)); | ||
s += row(fd.x.label, formatter(p.x)); |
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.
What about non ad-hoc metric field? seems like we should first test if fd.x
is an object
or it is just a string
. Same thing for the other two.
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.
@conglei only ad-hoc metrics are defined for bubble-charts.
362dd09
to
d455983
Compare
@conglei thanks for bringing this to my attention. I've updated the logic. |
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.
LGTM
(cherry picked from commit 46f89f4)
This PR fixes the bubble chart labels which previously rendered as
[object Object]
if the metric was an ad-hoc metric.to: @GabeLoins @graceguo-supercat @michellethomas @mistercrunch @timifasubaa