Kibana Vega Gantt chart

Hi guys
I got this very simple example of Gantt chart with Vega:

{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "description": "A simple bar chart with ranged data (aka Gantt Chart).",
  "data": {
    "values": [
      {"task": "A", "start": 1, "end": 3},
      {"task": "B", "start": 3, "end": 8},
      {"task": "C", "start": 8, "end": 10}
    ]
  },
  "mark": "bar",
  "encoding": {
    "y": {"field": "task", "type": "ordinal"},
    "x": {"field": "start", "type": "quantitative"},
    "x2": {"field": "end"}
  }
}

Could someone please tell what it should like in order to handle my index:
index name: rpa
each doc has event.startDateTime and event.endDateTime fields.
I want Y-Axis to show me separate bar for each event.userName value.

Thank you very much
Lior

Hi @liorh

I think this thread can be useful as reference to build one with a similar setup: Gantt chart on Kibana using version 7.11 - #3 by bab

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