Skip to content

Conversation

@bartvanremortele
Copy link
Contributor

@bartvanremortele bartvanremortele commented Jul 31, 2019

Summary

Fixes #42002

This fixes the displaying of the transaction chart's ticks and tooltip. It formats the values to the appropriate unit. I looked into possibly solving this by calling the tick formatter with the max value using d3.max() but this would require changes to be made on y-axis, axis and axis-ticks inside the react-vis library.

Schermafbeelding 2019-07-31 om 18 37 33
Schermafbeelding 2019-07-31 om 18 39 17

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@bartvanremortele bartvanremortele requested a review from a team as a code owner July 31, 2019 16:57
@elasticmachine
Copy link
Contributor

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@bartvanremortele
Copy link
Contributor Author

@sqren there are two potential issues remaining:

  • formatting the legend's average value
  • formatting the transactions in the table below the chart

Schermafbeelding 2019-07-31 om 18 58 59
Schermafbeelding 2019-07-31 om 18 59 05

@lukeelmers lukeelmers added the Team:APM - DEPRECATED Use Team:obs-ux-infra_services. label Aug 2, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui

Copy link
Member

@sorenlouv sorenlouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @bartvanremortele! This looks great, just a few minor comments.

@bartvanremortele
Copy link
Contributor Author

@sqren Ready for review again. I'm interested to pick up more if the other issues should also be fixed.

@sorenlouv
Copy link
Member

retest

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@sorenlouv sorenlouv merged commit 98b445a into elastic:master Aug 6, 2019
@sorenlouv
Copy link
Member

Thanks again @bartvanremortele! Will you create the backport to 7.x?

@bartvanremortele
Copy link
Contributor Author

Sure! I will do it an hour or so

bartvanremortele added a commit to bartvanremortele/kibana that referenced this pull request Aug 6, 2019
…ic#42375)

* make the transaction chart use the appropriate unit depending on the max value

* fix TimeFormatter type not being imported
sorenlouv pushed a commit that referenced this pull request Aug 6, 2019
… (#42759)

* make the transaction chart use the appropriate unit depending on the max value

* fix TimeFormatter type not being imported
@dgieselaar
Copy link
Member

Verified that unit is adjusted based on max y value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[APM] Transaction duration chart always shows duration in ms

5 participants