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

Sizing facet label size with guide-label fails #3204

Closed
eibanez opened this issue Nov 20, 2017 · 3 comments
Closed

Sizing facet label size with guide-label fails #3204

eibanez opened this issue Nov 20, 2017 · 3 comments

Comments

@eibanez
Copy link
Contributor

eibanez commented Nov 20, 2017

I am trying to format all titles and labels in the plots, using guide-title and guide-label as recommended in the documentation.

I haven't done exhaustive checks but from the example below you can see that the size for facet row and column label names do not respond to the size property.

image

{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "name": "trellis_barley",
  "data": {"url": "data/barley.json"},
  "mark": "point",
  "encoding": {
    "row": {
      "field": "site", "type": "ordinal"
    },
    "column": {
      "field": "year", "type": "ordinal"
    },
    "x": {
      "field": "yield", "type": "quantitative",
      "scale": {"zero": false}
    },
    "y": {
      "field": "variety", "type": "ordinal",
      "scale": {"rangeStep": 12}
    },
    "color": {"field": "year", "type": "nominal"}
  },
  "config": {
    "style": {
      "guide-title": {
            "fill": "red",
            "fontSize": 15,
            "fontStyle": "italic"
        },
      "guide-label": {
            "fill": "blue",
            "fontSize": 15,
            "fontStyle": "italic"
        }
    }
  }
}
@kanitw
Copy link
Member

kanitw commented Nov 21, 2017

Nice catch / thanks for reporting. I will make a PR to fix this.

@kanitw
Copy link
Member

kanitw commented Nov 21, 2017

Will be fixed in #3205

@kanitw kanitw closed this as completed Nov 21, 2017
@eibanez
Copy link
Contributor Author

eibanez commented Nov 21, 2017

Thanks for the quick fix!

kanitw added a commit that referenced this issue Nov 22, 2017
domoritz pushed a commit that referenced this issue Nov 23, 2017
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

No branches or pull requests

2 participants