-
What Grafana version and what operating system are you using?
Grafana Version 9.4.7 -
What are you trying to achieve?
I am using Elasticsearch as my Datasource. I want to plot XY chart and Gantt plots with below kind of Nested array data with JSON:
{“@timestamp”: “2023-08-16T08:38:38.105+05:30”, “id”: 1, “seconds”:[1,2,3,4,5], “a”:[0,1,1,0,1],“b”:[1,0,0,0,0],“c”:[0,1,1,0,1],“d”:[0,1,1,0,0],“e”:[0,1,1,0,0],“f”:[0,0,0,1,0]}
{“@timestamp”: “2023-09-16T08:38:38.105+05:30”, “id”: 2, “seconds”:[1,2,3,4,5], “a”:[0,1,1,0,1],“b”:[1,0,0,0,0],“c”:[0,1,1,0,1],“d”:[0,1,1,0,0],“e”:[0,1,1,0,0],“f”:[0,0,0,1,0]}
I have tried many transforms but unable to get desired result. I am unable to plot such data in Grafana. Is it possible to plot XY plots with such array fields?
I have already posted my query in detail in below topic:
Please, suggest some way to plot XY chart/ Gantt chart with such kind of array or nested array input.
Thanks in advance,
Priyanka Borgaonkar