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

refactor(xy): axis title and related simplifications #1324

Merged
merged 66 commits into from
Aug 25, 2021

Conversation

monfera
Copy link
Contributor

@monfera monfera commented Aug 23, 2021

Summary

  • safer text measurement, no need for manual destroy, no need for class
  • switched away from the svg measurer in tests and removed both DOM based measurers
  • [].sort predicate compareByValueAsc equipped to deal with duplicates
  • simplified and split getSimplePadding
  • simpler computeAxesSizes, renderBars etc.
  • removal of remaining shadowing (ctx) => cases
  • unified horizontal and vertical titles, due to much shared code
  • unified global and panel titles, due to much shared code
  • removed parallel redundant switch/case structures etc. from values.bar.ts
  • replaced two other versions of clamp with clamp
  • removed the git commit and husky
  • minor: forEach where a for is essentially that, etc.

Prepares the ground for #1310 and #758

Details

Issues

Checklist

  • The proper chart type label has been added (e.g. :xy, :partition)
  • The proper feature labels have been added (e.g. :interactions, :axis)
  • All related issues have been linked (i.e. closes #123, fixes #123)

@monfera monfera marked this pull request as draft August 23, 2021 16:00
@monfera monfera added :axis Axis related issue :xy Bar/Line/Area chart related code quality labels Aug 23, 2021
Copy link
Member

@markov00 markov00 left a comment

Choose a reason for hiding this comment

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

LGTM, good to merge with green CI

@monfera monfera mentioned this pull request Aug 24, 2021
19 tasks
Copy link
Collaborator

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

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

A cursory review, code changes LGTM. Thanks for always pushing code quality!

package.json Show resolved Hide resolved
@monfera monfera merged commit 4b43650 into elastic:master Aug 25, 2021
@nickofthyme
Copy link
Collaborator

🎉 This PR is included in version 34.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nickofthyme nickofthyme added the released Issue released publicly label Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:axis Axis related issue code quality released Issue released publicly :xy Bar/Line/Area chart related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants