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