# Shift charts

**URL:** <https://discuss.elastic.co/t/shift-charts/61285>\
**Category:** Kibana\
**Created:** [September 22, 2016, 3:59pm UTC](https://discuss.elastic.co/t/shift-charts/61285 "2016-09-22T15:59:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos\_Vega\_Moreno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_vega_moreno/32/3773_2.png) [@Carlos\_Vega\_Moreno](https://discuss.elastic.co/u/Carlos_Vega_Moreno)\
**Post date:** [September 22, 2016, 3:59pm UTC](https://discuss.elastic.co/t/shift-charts/61285/1 "2016-09-22T15:59:48Z")

</div>

I have 2 charts showing the same information on a dashboard, but one of them shifts this information a day. Like in the first picture.

The problem is that when I zoom out everything is fine and charts are aligned like in the first picture. BUT, If I zoom in, the charts start to show misaligned dates (picture 2). I don't know if this is a bug or not. The only difference between both charts is that the second one has the date shifted by one day using a JSON input script:

```
 {
 "script": "_value+1*24*3600*1000"
 }

```

I use a JSON input script because there is no way to create Date scripted fields.

How can I properly do this without misaligned the dates?

 ![](https://us1.discourse-cdn.com/elastic/original/2X/9/9fc23d47246fa1ca91169dd3be8d36e0dde9b508.png)

 ![](https://us1.discourse-cdn.com/elastic/original/2X/a/a8b395b6472c0214e2e7707088682cece8f05d08.png)

I'm using Kibana 4.5.4 and I tested it also in 4.6.1

---

<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:** [July 6, 2017, 1:38pm UTC](https://discuss.elastic.co/t/shift-charts/61285/2 "2017-07-06T13:38:17Z")

</div>


