Skip to content
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

timeseries: improved formatting on tooltip #5003

Merged
merged 1 commit into from
May 24, 2021

Conversation

stephanwlee
Copy link
Contributor

Previously, we were showing close to the "raw" value in the tooltip
often leading to very long nonsense especially with the floating point
math errors. The impact of said errors are often seeing a number like
'0.3000000000004' where the last digit 4 often is meaningless. To work
around this, we are using d3.format to remove unnecessary precision
which just often adds visual noises.

@google-cla google-cla bot added the cla: yes label May 21, 2021
@stephanwlee stephanwlee requested a review from bmd3k May 21, 2021 16:01
Previously, we were showing close to the "raw" value in the tooltip
often leading to very long nonsense especially with the floating point
math errors. The impact of said errors are often seeing a number like
'0.3000000000004' where the last digit `4` often is meaningless. To work
around this, we are using d3.format to remove unnecessary precision
which just often adds visual noises.
@stephanwlee stephanwlee merged commit 0be7532 into tensorflow:master May 24, 2021
@stephanwlee stephanwlee deleted the format branch May 24, 2021 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants