1st Post from a newbie,
I'm trying to replicate something like the below graph using Vega. All I currently get is a labelled frame with no data.
The data is returned by Elasticsearch
     "aggregations" : {
        "cpu" : {
          "values" : {
            "1.0" : 0.004999999999999999,
            "5.0" : 0.006,
            "25.0" : 0.008,
            "50.0" : 0.03723989723277846,
            "75.0" : 0.06195735022948351,
            "95.0" : 0.39579361863807483,
            "99.0" : 0.7608407483968309
          }
        }
      }
My attempted Vega code
    {
      $schema: https://vega.github.io/schema/vega-lite/v2.json
      title: SLA percentile evaluation
      data: {
        url: {
          %context%: true
          %timefield%: @timestamp
          index: metricbeat-*
          body: {
            "size": 0,
            "_source": "system.cpu.total.norm.pct" ,
            "aggs":{
              "cpu":{
                "percentiles":{
                  "field":"system.cpu.total.norm.pct",
                  "percents":[1, 5, 25, 50, 75,90, 95, 99]
                }
              }
            }
          }
        }
        format: { property: "aggregations.cpu.values" }
      },
      "mark": {"type": "bar", "style": "box"},
      "encoding": {
        "y": {"field": "values", "type": "quantitative"},
        "x": {"field": "key", "type": "quantitative", axis: {title: "Percentiles", tickMinStep: 1}},
        "color": {"value": "steelblue"},
        "size": {"value": 11}
      }
    }
What am I missing ??
Many Thanks
