# Bar Chart - Date Range - Display custom date format

**URL:** <https://discuss.elastic.co/t/bar-chart-date-range-display-custom-date-format/251049>\
**Category:** Kibana\
**Created:** [October 5, 2020, 9:18pm UTC](https://discuss.elastic.co/t/bar-chart-date-range-display-custom-date-format/251049 "2020-10-05T21:18:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adahn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adahn/32/45475_2.png) [@adahn](https://discuss.elastic.co/u/adahn)\
**Post date:** [October 5, 2020, 9:18pm UTC](https://discuss.elastic.co/t/bar-chart-date-range-display-custom-date-format/251049/1 "2020-10-05T21:18:02Z")

</div>

When I set the X axis for the chart by date range, it displays the date/time out to the millisecond. This makes the object very large with lots of whitespace on the dash. Can this be truncated or removed?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/2/b2977ab0a668dbaaacedfdaa57f16d9ceb143814.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/7/47ba31ff74079a41120b5a7e52b03fa5c9b925ee.png)

---

<div class="post-metadata">

**Author:** ![cheiligers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheiligers/32/73114_2.png) [@cheiligers](https://discuss.elastic.co/u/cheiligers)\
**Post date:** [October 6, 2020, 6:55pm UTC](https://discuss.elastic.co/t/bar-chart-date-range-display-custom-date-format/251049/2 "2020-10-06T18:55:50Z")

</div>

@adahn, there are a few options you can try:

1. [set](https://www.elastic.co/guide/en/kibana/current/advanced-options.html#kibana-general-settings) the `dateFormat` in `advanced settings` to customize your dates.
2. In the visualizations itself, there are options to show/hide the x-axis labels and to align them.  
If customizing the date format doesn't work, you could hide the labels themselves or just hide the filter labels.  
 ![Screen Shot 2020-10-06 at 11.49.40](https://us1.discourse-cdn.com/elastic/original/3X/e/4/e48ffcb76764f88c8ccc7a1cc8e3e771a6f89bcf.png)  
If none of those options work for you, then please add your support to the existing issue [here](https://github.com/elastic/kibana/issues/4957).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 3, 2020, 6:55pm UTC](https://discuss.elastic.co/t/bar-chart-date-range-display-custom-date-format/251049/3 "2020-11-03T18:55:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
