Hello
I'm trying to create a new visualization, vertical bar chart, with time in the x-axis.
Here the request Kibana is doing:
{
"query": {
"filtered": {
"query": {
"query_string": {
"query": "*",
"analyze_wildcard": true
}
},
"filter": {
"bool": {
"must": [
{
"query": {
"query_string": {
"analyze_wildcard": true,
"query": "MERCH_YEAR:2016"
}
}
}
],
"must_not": []
}
}
}
},
"size": 0,
"aggs": {
"2": {
"date_histogram": {
"field": "DAY",
"interval": "1w",
"time_zone": "Europe/Berlin",
"min_doc_count": 1,
"extended_bounds": {
"min": 1465829368033,
"max": 1465830268033
}
},
"aggs": {
"3": {
"terms": {
"field": "ZONE",
"size": 14,
"order": {
"_term": "asc"
}
},
"aggs": {
"1": {
"sum": {
"field": "SALES_EURO"
}
}
}
}
}
}
}
}
The aggregation considers Monday as first day of the week.
How can I change this behavior in order to have Sunday as first day of the week and to have sales metric aggregated from Sunday to Saturday for each week?
Thank you
Lorenzo