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

Title angle and limit ignored in config #7434

Closed
jwoLondon opened this issue May 5, 2021 · 0 comments · Fixed by #7667
Closed

Title angle and limit ignored in config #7434

jwoLondon opened this issue May 5, 2021 · 0 comments · Fixed by #7667
Assignees
Labels

Comments

@jwoLondon
Copy link
Contributor

When attempting to configure a title's angle and limit, the values are ignored but shouldn't be. Here's a minimal reproducible example:

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "width": 300,
  "title": {"text": ["This is a long enough title"]},
  "config": {"title": {"angle": 16, "limit": 60}},
  "data": {"values": [{"x": 1},{"x": 5}]},
  "encoding": {"x": {"field": "x"}},
  "mark": "circle"
}

Both work if they are specified as direct properties rather than as configuration options:

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "width": 300,
  "title": {
    "text": ["This is a long enough title"],
    "angle": 16,
    "limit": 60
  },
  "data": {"values": [{"x": 1},{"x": 5}]},
  "encoding": {"x": {"field": "x"}},
  "mark": "circle"
}
@jwoLondon jwoLondon changed the title Title angle and limit ignored in congig Title angle and limit ignored in config May 5, 2021
@kanitw kanitw self-assigned this Aug 15, 2021
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.

2 participants