-
Notifications
You must be signed in to change notification settings - Fork 620
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
tickMinStep ignored for small domain values #9034
Comments
It looks to me, as of Vega-Lite 5.14.1, that Here's an example of a histogram with an attempt to limit x-tick spacing to be no smaller than 2 domain units. But the result still includes tick spacing of 1 unit. {
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "data/movies.json"},
"mark": "bar",
"encoding": {
"x": {
"bin": true,
"field": "IMDB Rating",
"axis": {
"grid": true,
"tickMinStep": 2
}
},
"y": {"aggregate": "count"}
}
}
Open the Chart in the Vega Editor When changing the value of ping @kanitw as it looks like you did some work with tickMinStep earlier this year in #8872. |
Friendly ping @kanitw. Not certain this was related to your changes, but wondering if you could take a quick look |
Are there any workarounds for getting |
FWIW, in my case, dropping |
Please:
tickMinStep=1
seems to be ignored in v5.8.0 of vega-lite when for domain values less than 5. Ticks appear with floating point values instead of integers only (e.g., as they were in this prior issue example: #7034)I could not find an open bug searching for
tickMinStep
in the GitHub issues for this repository.I tested using vega-lite 5.8.0.
Example with v4 schema, repurposed from #7034 (Open the chart in the Vega Editor)
Example using v5 schema (Open the chart in the Vega Editor)
The text was updated successfully, but these errors were encountered: