Search code examples
warningsvega

Why do I get these warnings for my Vega specification?


Open the Chart in the Vega Editor

The Vega Editor produces very strange warnings for my Vega spec (see them with ALT+F8).

  1. In a mark, it highlights "type": "text" and says 'Value is not accepted. Valid values: "group".'
  2. In encode, it highlights "baseline": {"value": "line-bottom"} and says 'Value is not accepted. Valid values: "top", "middle", "bottom", "alphabetic".'

The line-top and line-bottom baselines were added in 5.10 according to https://vega.github.io/vega/docs/marks/text/


Solution

  • It seems like a validation bug. line-bottom is causing the other errors. If you change it to bottom they go away. I'll raise a bug on github.