Skip to content

fix(axis): use correct desired tick count based on axis type#1646

Merged
markov00 merged 5 commits intoelastic:masterfrom
markov00:2022_04_12-fix_axis_tick_desired_count
Apr 14, 2022
Merged

fix(axis): use correct desired tick count based on axis type#1646
markov00 merged 5 commits intoelastic:masterfrom
markov00:2022_04_12-fix_axis_tick_desired_count

Conversation

@markov00
Copy link
Copy Markdown
Collaborator

@markov00 markov00 commented Apr 12, 2022

Summary

Fix the calculation of the desired tick count for the X axis.

From this, on master, with the X axis ticks set to ticks={3}
Screenshot 2022-04-12 at 18 37 53

To
Screenshot 2022-04-12 at 18 37 42

Details

Break out from #1435

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)
  • Unit tests have been added or updated to match the most common scenarios
  • The proper documentation and/or storybook story has been added or updated

@markov00 markov00 added bug Something isn't working :axis Axis related issue :xy Bar/Line/Area chart related labels Apr 12, 2022
@markov00 markov00 requested review from monfera and nickofthyme April 13, 2022 08:09
@markov00 markov00 marked this pull request as ready for review April 13, 2022 08:10
@markov00 markov00 merged commit 512a6cd into elastic:master Apr 14, 2022
@markov00 markov00 deleted the 2022_04_12-fix_axis_tick_desired_count branch April 14, 2022 12:15
nickofthyme pushed a commit that referenced this pull request Apr 14, 2022
# [46.0.0](v45.1.1...v46.0.0) (2022-04-14)

### Bug Fixes

* **axis:** ticks generation for linear scale on bar charts ([#1645](#1645)) ([65d0e7d](65d0e7d))
* **axis:** use correct desired tick count based on axis type ([#1646](#1646)) ([512a6cd](512a6cd))
* **deps:** update dependency @elastic/eui to v53 ([#1639](#1639)) ([34bf325](34bf325))
* **deps:** update dependency @elastic/eui to v54 ([#1642](#1642)) ([6eaca0a](6eaca0a))

### Features

* **axes:** option to fit domain to list of annotation `SpecIds` ([#1641](#1641)) ([220350d](220350d))
* **goal:** auto generated linear ticks ([#1637](#1637)) ([5437d8e](5437d8e))
* **legend:** expose sorting function ([#1644](#1644)) ([128114c](128114c))

### BREAKING CHANGES

* **goal:** goal chart now requires domain min and max to be defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:axis Axis related issue bug Something isn't working :xy Bar/Line/Area chart related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants