-
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
Ensure tooltips are labeled with percentage values #12746
Ensure tooltips are labeled with percentage values #12746
Conversation
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 like the solution for dispatch, but i don't think agg_configs should know anything about vislib or options like percentage.
return pre += this.type.makeLabel(this); | ||
}; | ||
|
||
AggConfig.prototype.isPercentage = function () { |
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.
actually this is creating couplings that shouldn''t be there ... agg_config shouldn't have to know anything about vislib.
also it probably shouldn't have to know anything about percentage options and such.
i think vislib should take care of this when rendering the tooltip.
Not seeing the percentage with the following configuration in makelogs Metric: Count cc: @thomasneirynck |
64c8ca8
to
c034a05
Compare
c034a05
to
e811eb9
Compare
Closing this in favor of #13212. |
Release note: Tooltips now correcly show the percentage value if a Y-axis indicates percentage.
Closes #12391.