{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/24962","repository_url":"https://api.github.com/repos/elastic/kibana","labels_url":"https://api.github.com/repos/elastic/kibana/issues/24962/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/24962/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/24962/events","html_url":"https://github.com/elastic/kibana/issues/24962","id":376238312,"node_id":"MDU6SXNzdWUzNzYyMzgzMTI=","number":24962,"title":"[Kibana 6.3.1] [Timelion] Show the value of the following hour/date/week... if the corresponding interval is 1h/1d/1w...","user":{"login":"kittyan18","id":41327675,"node_id":"MDQ6VXNlcjQxMzI3Njc1","avatar_url":"https://avatars1.githubusercontent.com/u/41327675?v=4","gravatar_id":"","url":"https://api.github.com/users/kittyan18","html_url":"https://github.com/kittyan18","followers_url":"https://api.github.com/users/kittyan18/followers","following_url":"https://api.github.com/users/kittyan18/following{/other_user}","gists_url":"https://api.github.com/users/kittyan18/gists{/gist_id}","starred_url":"https://api.github.com/users/kittyan18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kittyan18/subscriptions","organizations_url":"https://api.github.com/users/kittyan18/orgs","repos_url":"https://api.github.com/users/kittyan18/repos","events_url":"https://api.github.com/users/kittyan18/events{/privacy}","received_events_url":"https://api.github.com/users/kittyan18/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-01T03:19:58Z","updated_at":"2018-11-01T03:19:58Z","closed_at":null,"author_association":"NONE","body":"**Kibana version: 6.3.1\r\n\r\n**Elasticsearch version: 6.3.1\r\n\r\n**Server OS version: ubuntu 16.04\r\n\r\n**Browser version: Chrome - Version 67.0.3396.99 (Official Build) (64-bit)\r\n\r\n**Browser OS version:**\r\n\r\n**Original install method (e.g. download page, yum, from source, etc.):**\r\n\r\n**Describe the bug:**\r\nTimelion data  show the value of the following hour/date/week... if the corresponding interval is 1h/1d/1w...\r\n**Steps to reproduce:**\r\n1. Create the simple timelion query ( only count the data) with interval 1d\r\n![image](https://user-images.githubusercontent.com/41327675/47830368-2f300100-ddbe-11e8-8aee-2ef77632e977.png)\r\n2. In the Elasticsearch  query, the data will return like this:\r\n   {\r\n                \"key_as_string\": \"2018-10-26T00:00:00.000Z\",\r\n                \"key\": 1540512000000,\r\n                \"doc_count\": 1448,\r\n                \"count\": {\r\n                  \"value\": 1448\r\n                }\r\n              },\r\n              {\r\n                \"key_as_string\": \"2018-10-27T00:00:00.000Z\",\r\n                \"key\": 1540598400000,\r\n                \"doc_count\": 0,\r\n                \"count\": {\r\n                  \"value\": 0\r\n                }\r\n              },\r\n              {\r\n                \"key_as_string\": \"2018-10-28T00:00:00.000Z\",\r\n                \"key\": 1540684800000,\r\n                \"doc_count\": 0,\r\n                 \"count\": {\r\n                  \"value\": 0\r\n                }             },\r\n              {\r\n                \"key_as_string\": \"2018-10-29T00:00:00.000Z\",\r\n                \"key\": 1540771200000,\r\n                \"doc_count\": 3860,\r\n                \"count\": {\r\n                  \"value\": 3860\r\n                }              \r\n}\r\n3. In the timelion chart, the value is shown wrongly. It showed the value of the following date\r\nFor example :\r\nit show data from 2018-10-25T00:00:00Z to 2018-10-25T23:59:59Z is 1448, this value is actually belongs to 2018-10-26T00:00:00.000Z\r\n![image](https://user-images.githubusercontent.com/41327675/47830547-eb89c700-ddbe-11e8-95e7-e0bc5cb53cae.png)\r\nThe other date is also shown wrongly\r\n![image](https://user-images.githubusercontent.com/41327675/47830554-f17fa800-ddbe-11e8-9681-bef59c389cdb.png)\r\n![image](https://user-images.githubusercontent.com/41327675/47830558-f6445c00-ddbe-11e8-8565-93d51219f8e0.png)\r\n![image](https://user-images.githubusercontent.com/41327675/47830565-fb091000-ddbe-11e8-83e6-60af943a1d10.png)\r\n\r\nIt happend the same if you run with interval hour/week/month....\r\n**Expected behavior:**\r\nThe timelion chart should show the correct data for that period\r\n\r\n**Screenshots (if relevant):**\r\n\r\n**Errors in browser console (if relevant):**\r\n\r\n**Provide logs and/or server output (if relevant):**\r\n\r\n**Any additional context:**\r\n"}}
{"actor":{"display_login":"kittyan18"}}