-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Respect tickMinStep for binned scale (#3904)
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: <img width="914" alt="Screenshot 2024-04-19 at 3 39 57 PM" src="https://github.com/vega/vega/assets/134452031/407659a6-b173-4661-a422-c2df6ebbc926"> After: <img width="919" alt="Screenshot 2024-04-19 at 3 39 26 PM" src="https://github.com/vega/vega/assets/134452031/07fba47d-791c-4423-90b9-8fec8f41be4d"> (`tickMinStep` both set to `0.1`)
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters