Multiple X-axis metrics

Hi,
I'm learning kibana and I came across the following problem.

Let's say I have an Index with this data:

       serie1  serie2
  x1      40         20 
  x2      30         40
  x3      50         60
  x4      20         10

in kibana index like:

{ "name" : "series2",
"x1":20,
"x2":40,
"x3":60,
"x4":10,},
{ "name" : "series1",
"x1":40,
"x2":30,
"x3":50,
"x4":20,}

And I want to create this following visualization:

Untitled

I tried using vega with this template : https://vega.github.io/vega/examples/line-chart/, but i failed to replace the values in data with the data in the index.

What is the best way to get the needed visualization?
Thanks in advance.

Am I understanding this correctly in that you want a visualize a single document? Kibana visualizations are usually based on aggregations across many documents.

Sorry for not being clear about the data.
In this case each "serie" is a diferent document under the same index.

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