hi,
I want to present the plots for documents with "group"==a, and I only want to present documents with the latest date of the time range applied by the dashboard.
How can I do this?
here is my script:
{
$schema: https://vega.github.io/schema/vega-lite/v2.json
data: {
data: table
url: {
%context%: true
%timefield%: Time
index: data*
body: {
size: 10000
_source: ["X", "Y","group"]
}
}
format: {property: "hits.hits"}
}
mark: {type: "square", filled: true, size: 800 }
encoding: {
x: {
field: "_source.X"
type: quantitative
axis: {title: "X"}
}
y: {
field: "_source.Y"
type: quantitative
axis: {title: "Y"}
}
}
}