# Bar chart date histogram - set x axis to yyyy-MM

**URL:** https://discuss.elastic.co/t/bar-chart-date-histogram-set-x-axis-to-yyyy-mm/55391
**Category:** Kibana
**Created:** [July 13, 2016, 9:31am UTC](https://discuss.elastic.co/t/bar-chart-date-histogram-set-x-axis-to-yyyy-mm/55391 "2016-07-13T09:31:37Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)
#### Post date: [July 13, 2016, 6:24pm UTC](https://discuss.elastic.co/t/bar-chart-date-histogram-set-x-axis-to-yyyy-mm/55391/2 "2016-07-13T18:24:17Z")

</div>

The date markers on the axis are automatically generated, based on the size of the axis (to determine how many ticks to show) and the range of dates (to determine the values at those ticks). This is all pre-defined, and can't currently be modified. So regardless of the data you are using, or the formatting of that data, you can't currently remove the days, or control how many markers are shown.

To control the date format on the labels, there's an open issue about [controlling field formatting per visualizations](https://github.com/elastic/kibana/issues/4957) instead of only per field, which covers part of this. However, it may not be quite the same since the axis dates don't observe the field formatters currently.

As for controlling where the markers show up, and how many show up, I don't currently see any issue about that. I could encourage you to [open an issue here](https://github.com/elastic/kibana/issues).

It does seem like Kibana should be smarter by default based on the date interval it's using, especially when you don't use _auto_. That in itself might be worth of its own separate issue as well.

---

_[View the full topic](https://discuss.elastic.co/t/bar-chart-date-histogram-set-x-axis-to-yyyy-mm/55391)._
