-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[APM] Design review: Charts replacement #84178
Comments
Pinging @elastic/apm-ui (Team:apm) |
@formgeist The date format, in this case, is not absolute. It's dynamically calculated based on the difference between the dates. This Function is used to calculate it And this is the possible output: * | Difference | Format |
* | -------------- |------------------------------------------------|
* | >= 5 years | YYYY - YYYY |
* | >= 5 months | MMM YYYY - MMM YYYY |
* | > 1 day | MMM D, YYYY - MMM D, YYYY |
* | >= 5 hours | MMM D, YYYY, HH:mm - HH:mm (UTC) |
* | >= 5 minutes | MMM D, YYYY, HH:mm:ss - HH:mm:ss (UTC) |
* | default | MMM D, YYYY, HH:mm:ss.SSS - HH:mm:ss.SSS (UTC) | The difference is less than 5 minutes, that's why it formates as I can see if it's possible to increase the width of the tooltip to have it on a single line. WDYT? |
@cauemarcondes Thanks for explaining - I'm surprised that we opt to show milliseconds for anything below 5 minutes. That's still a really long time, and the issue I see is that those labels are really hard to process for a user even if we make the tooltip wider to accommodate the longer labels. I would much prefer us to reconsider the formats so we're presenting rounded values instead of what I refer to as "absolute". If we take the common case, using our default range, the user will see this; I don't think it's necessary to have the milliseconds in there unless the difference is perhaps less than a second. I understand this is pretty aggressive formatting of time, but I think it's for the benefit of improved legibility of the labels. cc @sqren thoughts? |
Hey Team, I'm not 100% sure but from the screenshots, it looks like you are not using the EUI Chart theme, that is the default theme to use for charts inside Kibana. EUI decided design and manage this theme outside the elastic-charts library, so unfortunately at the moment, you have to use it from the services mentioned above and not from the one coming with the library. |
hey @markov00 thanks for your comment, I'm going to look into it. |
@cauemarcondes I added a new polish issue in the issue description where the chart tooltips are showing on top of the Kibana header. |
@markov00 can you tell me how you can tell we are not using the theme correctly based on the images? |
@cauemarcondes from the last shared set of images (the one with the tooltips) seems that you are using the EUI theme. I've wrote that comment after seeing the image shared here: #84178 (comment) tick lines on the axis are not enabled by default on the EUI theme |
|
That's for the tip @markov00 |
@markov00 @nickofthyme About the tooltip boundary, I create a simple example here to reproduce the problem, which is the tooltip being shown on top of the menu. I believe only adding |
Nvm, I see this issue now. Checking... The If you are trying to place a menu element above the chart via some absolute positioning, the |
@nickofthyme This is what I what to avoid: The tooltip showing on top of the menu. As you mentioned I think it's not possible to fix it with |
Oh I see, yeah that's tough I don't think the Still looking to see if there is some type of hack to make it work. Update: |
Thanks @nickofthyme , I see that you've already created the issue. 🎉 |
@formgeist we just released a new version of charts that includes the ability to add a listener to a bucket click: We also have a PR to update the package on Kibana but it's currently on hold due to an issue with renovatebot. |
@markov00 Fantastic! Thanks for the quick turn around on this 👏 |
We could definitely re-think the time bounders of that function. @sqren WDYT? |
I agree, having milliseconds is quite noisy and it's better only to show it for small durations (less than 10 seconds or so). |
I've opened a number of follow up issues in order to close this one out. There's a list of references available above. Considering most of the critical blockers have been resolved by a first pass PR and help from the charts team I'll close this issue. |
Summary
In our current effort to replace our existing charts with Elastic Charts, I've discovered a few issues that we should take a look at before shipping the replacement.
I've divided the issues into blockers and polish in order to help prioritization a bit before FF.
Blocked by Elastic charts team
Clickable buckets regardless of height
[Caue]: Draft PR fixing it [APM] Fix Transaction duration distribution barchart clickarea #84394
👀 View screenshot
Aggregate value in legend
👀 View screenshot
Aggregate value in legend for errors
👀 View screenshot
Both issues above are already described as part of #80298 - Charts issue elastic/elastic-charts#561
Tooltip displayed on top of menu
👉 Charts team have opened an enhancement issue for this elastic/elastic-charts#922
[Caue]: A new issue has been created on Elastic charts, they need to expose a new property to fix it. Expose tooltip z-index elastic-charts#922
👀 View screenshot
Blockers
[Caue]: I did a workaround to fix it, and created a new issue Chart disappears when rendering LineAnnotation in another Component elastic-charts#914
👀 View screenshot
ML integration displaying anomaly detection job results are not displaying as expected. Opened its own issue ([APM] ML anomaly detection integration: Displaying anomaly job results in the Transaction duration chart is not as intended #84185) [APM] ML anomaly detection integration: Displaying anomaly job results in the Transaction duration chart is not as intended #84185, but is it considered critical for shipping the charts replacement 🔴🔴🔴🔴⚪️
[Caue]: PR fixing it [APM] ML anomaly detection integration: Displaying anomaly job results in the Transaction duration chart is not as intended #84415
Y-axis doesn't show
maxValue
in the ticks. Problematic when the graphs go beyond the upper tick. 🔴🔴🔴🔴⚪️[Caue]: Unfortunatelly there's no way to manually set the maxValue, there's an open issue to make it possible: elastic/elastic-charts#397
👀 View screenshot
Polish
👀 View screenshot
- [ ] Increase the number of legend items we display in the legend to 4 or 5. We currently reserve too much space for variable content.[Caue]: Unfortunately there's no way to reduce the space between the legend and its value. There's an open issue to improve the Legend, but it's not clear when it's going to be implemented. elastic/elastic-charts#580
👀 View screenshot
👀 View screenshot
[Caue]: PR fixing it: [APM] Adjust time formats based on the difference between start and end #84470
👀 View screenshot
The text was updated successfully, but these errors were encountered: