Kibana4 Histogram X-Axis Not Ordering Properly

Hello all,

I've started playing around with Kibana4 and the use of scripted fields to
generate fields such as *timestamp._hourOfDay. *I've been trying to
generate a Histogram visualization that will show me the the top 5 most
popular event types during each hour of the day. However, when I set the
size of the Terms sub-aggregation to 4 or greater the X-axis begins with
Hour 9 instead of Hour 0. Here's what it looks like with Terms size set to

And here's what it looks like with Terms size set to 3:

This behavior occurs in both the Line Chart and Vertical Bar Chart, but not
in the Pie Chart. Any suggestions as to what I might be doing wrong/how to
go about fixing this?




Notice of Confidentiality: ***This E-mail and any of its attachments may
contain Lincoln National Corporation proprietary information, which is
privileged, confidential, or subject to copyright belonging to the Lincoln
National Corporation family of companies. This E-mail is intended solely
for the use of the individual or entity to which it is addressed. If you
are not the intended recipient of this E-mail, you are hereby notified that
any dissemination, distribution, copying, or action taken in relation to
the contents of and attachments to this E-mail is strictly prohibited and
may be unlawful. If you have received this E-mail in error, please notify
the sender immediately and permanently delete the original and any copy of
this E-mail and any printout. Thank You. ***

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit