Skip to content

[Infra UI] Add legends and points to charts on node detail page#43787

Merged
simianhacker merged 5 commits intoelastic:masterfrom
simianhacker:add-lengend-node-details
Aug 30, 2019
Merged

[Infra UI] Add legends and points to charts on node detail page#43787
simianhacker merged 5 commits intoelastic:masterfrom
simianhacker:add-lengend-node-details

Conversation

@simianhacker
Copy link
Copy Markdown
Member

Summary

This PR adds legends to the charts on the node detail page. This also increases the height of the charts by 50 pixels to make room for the legend on the system cpu chart. This PR also turns on the points for line and area charts so single points are easier to see.

image

Checklist

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

@simianhacker simianhacker added release_note:fix Feature:Metrics UI Metrics UI feature v8.0.0 Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.5.0 labels Aug 22, 2019
@simianhacker simianhacker requested a review from a team as a code owner August 22, 2019 16:36
@simianhacker simianhacker self-assigned this Aug 22, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/infra-logs-ui

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@simianhacker
Copy link
Copy Markdown
Member Author

retest

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Copy link
Copy Markdown
Contributor

@phillipb phillipb left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@sorantis
Copy link
Copy Markdown

sorantis commented Oct 24, 2019

@simianhacker , @phillipb can we align the charts and labels on this page?

Screen Shot 2019-10-24 at 09 44 40

I also think that a circle over each point could be smaller and thinner.
Screen Shot 2019-10-24 at 09 57 40

Since we've already added period to Metricbeat data in 7.4.0, we can avoid disconnected points on charts by making use of that value. Therefore I don't think we need to emphasize every point so our charts can only show lines. The dots can make some graphs look untidy, e.g.:
meh

Same^ goes for Metrics Explorer - the charts look excessively busy with points. Happy to create a new issue if it's more than just a quick fix.

Screen Shot 2019-10-24 at 11 20 17

@weltenwort
Copy link
Copy Markdown
Member

We're facing the same alignment problems with elastic-charts on the log rate analysis page. If you come across a good solution we'd be interested to learn about it.

@simianhacker
Copy link
Copy Markdown
Member Author

@weltenwort @sorantis It's not possible because the Y-Axis legend labels are aligned "right" to the y-axis. Almost every charting system on the market will have this issue. The only way to make it look "aligned" is if we visually changed the size of the left padding (which won't work because our data is dynamic). The other option is to draw a container around the chart and then align to the container but allowing the y-axis labels enough room to grow and shrink based on the values.

@simianhacker
Copy link
Copy Markdown
Member Author

@sorantis I think we should leave the points as they are because it's becomes obvious when data is missing or if we only have 1 point; it favors accuracy over ascetics. If we want to move forward with this I would recommend opening a new issue so it doesn't get lost.

@sorantis
Copy link
Copy Markdown

related: #49393

@simianhacker simianhacker deleted the add-lengend-node-details branch April 17, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Metrics UI Metrics UI feature release_note:fix Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.5.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants