I have field in index and trying to make a scatter chart out of it. But it's showing only axis.
{
$schema: https://vega.github.io/schema/vega-lite/v2.json
mark: point
data: {
url: {
%context%: true
%timefield%: @timestamp
index: load_log
body: {
size: 0
_source: ["io_mbytes", "total_cpu", "user"]
}
}
}
transform: [
{
aggregate: [
{op: "sum", field: "_source['total_cpu']", as: "sum_cpu"}
]
groupby: ["_source.user"]
}
{
aggregate: [
{op: "sum", field: "_source['io_in_mbytes']", as: "sum_io"}
]
groupby: ["_source.user"]
}
]
mark: point
encoding: {
x: {field: "sum_cpu", type: "quantitative"}
y: {field: "sum_io", type: "quantitative"}
}
}