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

fix: Respect tickMinStep for binned scale #3904

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

alexxu-db
Copy link
Contributor

Currently, we do not pass in the count (calculated based on tickMinStep) while generating tick values for binned scale.

This causes performance issues especially when there exist a huge amount of bins. Attempting to render too many ticks will sometimes even crash the browser tab.

Before:
Screenshot 2024-04-19 at 3 39 57 PM

After:
Screenshot 2024-04-19 at 3 39 26 PM

(tickMinStep both set to 0.1)

@alexxu-db alexxu-db requested a review from a team as a code owner April 19, 2024 22:40
@kanitw kanitw requested review from kanitw and lsh April 19, 2024 22:48
@kanitw
Copy link
Member

kanitw commented Apr 19, 2024

LGTM. I'll defer to @lsh to merge and release.

Copy link
Member

@lsh lsh left a comment

Choose a reason for hiding this comment

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

Agree with @kanitw, looks good to me.

@lsh lsh merged commit d849247 into vega:main Apr 22, 2024
4 checks passed
@lsh lsh mentioned this pull request May 8, 2024
lsh added a commit that referenced this pull request May 10, 2024
**docs**
* remove Google Analytics. (via #3894) (Thanks @domoritz!)

**monorepo**
* switch to ESLint flat config file. (via #3920) (Thanks @lsh!)
* update node versions in ci. (via #3915) (Thanks @domoritz!)

**vega-encode**
* use domainMin and domainMax to set scale padding. (via #3906) (Thanks
@Jami159 & @lsh!)

**vega-scale**
* Add observable10 palette. (via #3843) (Thanks @mcnuttandrew!)
* Respect tickMinStep for binned scale. (via #3904) (Thanks @alexxu-db!)

**vega-scenegraph**
* Revert TooltipHideEvent to MouseOutEvent to fix events on mobile. (via
#3909) (Thanks @kadamwhite!)

**vega-typings**
* Add observable10 palette. (via #3843) (Thanks @mcnuttandrew!)

**vega-view**
* turn off all handlers in View.finalize() to fix memory leak. (via
#3896) (Thanks @cmerrick!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants