Facet operator doesn't work in Kibana Vega

Hello!! :wave:

I have found that not all Multi-View Displays, such as Faceting (Trellis Plot / Small Multiples), work properly in Kibana Vega. To be more specific, for example I am running the following code in vega visualization in Kibana:

{ "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"name": "trellis_barley",

"data": {"url": "https://vega.github.io/editor/data/barley.json"},

"mark": "point",

"height": {"step": 12},

"encoding": {

"facet": {

  "field": "site",

  "type": "ordinal",

  "columns": 2,

  "sort": {"op": "median", "field": "yield"} },

"x": {

  "aggregate": "median",

  "field": "yield",

  "type": "quantitative",

  "scale": {"zero": false} },

"y": {

  "field": "variety",

  "type": "ordinal",

  "sort": "-x" },

"color": {"field": "year", "type": "nominal"} }

}

The facet operator also doesn't work in Kibana Vega, but in the online vega editor works perfectly.

Please look the following screenshots.

1. Screenshot from kibana vega:

2. Screenshot from online vega editor:

Have you any idea how can I fix it?
Thank you very much.

The faceting operator was added in a more recent version of Vega- we have upgraded Vega for the future release of 7.9, but currently versions of the stack don't support this. You may be able to modify the version of Kibana that you are running, or use a custom plugin, but those are the only workarounds.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.