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

Grid lines do not respond to tickMinStep #7034

Closed
morberg opened this issue Nov 9, 2020 · 0 comments · Fixed by #7061
Closed

Grid lines do not respond to tickMinStep #7034

morberg opened this issue Nov 9, 2020 · 0 comments · Fixed by #7061
Labels

Comments

@morberg
Copy link
Contributor

morberg commented Nov 9, 2020

Grid lines do not respond to tickMinStep. Originally reported in vega/altair#2329

In August 2019 it seems the grid lines were removed (not sure what exact version of vega-lite Altair was using at that time).

Here is a small example that shows the problem. I would expect the grid lines without tick marks to be removed in this chart.

Open the Chart in the Vega Editor

{
  "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
  "description": "A simple bar chart with embedded data.",
  "data": {
    "values": [
      {"a": "A", "b": 2}, {"a": "B", "b": 1}, {"a": "C", "b": 1},
      {"a": "D", "b": 1}, {"a": "E", "b": 2}, {"a": "F", "b": 2},
      {"a": "G", "b": 3}, {"a": "H", "b": 3}, {"a": "I", "b": 1}
    ]
  },
  "mark": "bar",
  "encoding": {
    "x": {"field": "a", "type": "nominal", "axis": {"labelAngle": 0}},
    "y": {"field": "b", "type": "quantitative", "axis": {"tickMinStep": 1}}
  }
}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant