There is a date histogram with monthly interval and on X-Axis, i am getting intervals like :- 2017-02-01, 2017-03-01 but i want them to be February 2017, March 2017. Any idea? If i am to develop that functionality myself, what methodology would you suggest?
There is a visualization (Vertical Bar/Histogram) where i am having a Terms aggregation on a weekday.keyword field and i wish to Order it by actual Day of week sequence (Eg. :- Sunday, Monday, Tuesday....). I cannot order be date as a single weekday would comprise data from multiple dates.
Add ["P1MT", "MMMM YYYY"] between the entries for P1DT and P1YT to the list in the advanced setting dateFormat:scaled to define a custom formatting of monthly intervals.
Instead of doing a Terms aggregation you could define a Filters aggregation and define the categories yourself, e.g. weekday.keyword:Sunday for the first Filter, weekday.keyword:Monday for the second and so on. That way you have full control over the ordering.
@weltenwort
In 2, the filters are getting ordered in alphabetical order of the Label. How shall i change that?
They are supposed to be returned in the order i request the filters but it's not happening this way. Request :-
You are correct, this is a known issue: https://github.com/elastic/kibana/issues/10543 Since 5.0 the Elasticsearch api does not preserve the order. I am sorry I missed that. Please feel free to add your voice to the issue linked above to give it more weight.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.