I have a Vega visualization within Kibana. The vega part looks like this
{
$schema: https://vega.github.io/schema/vega-lite/v5.json
title: Event counts from all indexes
data: {
url: {
%context%: true
%timefield%: @timestamp
index: commits
body: {
aggs: {
time_buckets: {
date_histogram: {
field: @timestamp
calendar_interval: day
time_zone: "Asia/Calcutta"
}
}
}
size: 0
}
}
format: {property: "aggregations.time_buckets.buckets"}
}
mark: line
encoding: {
x: {
field: key
type: temporal
axis: {title: false}
}
y: {
field: doc_count
type: quantitative
axis: {title: "Document count"}
}
}
}
As you see, I have hard-coded the time zone to Asia/Calcutta. Is there a way to set the time zone to the browser's time zone ?