This is related to the browser's timeframe/timezone presentation of the data. Change the timezone
parameter of the query to match the timezone of your browser and you should see that the date labels on your line chart behave like you would expect.
The line chart uses the browser's timezone to decide how to delineate the days and draw the chart, whereas the single count simply displays the result back from the API. That's how it can appear that you're getting "different results" for the same day.
Troubleshooting tip for the future: you can inspect the raw JSON of the query result to see what is coming back from the API.
Here's what the query result looks like for a count with a 7 day interval. You can see the exact datetime and timezone used in the query.
{
"result": [
{
"value": 70,
"timeframe": {
"start": "2017-05-31T07:00:00.000Z",
"end": "2017-06-01T07:00:00.000Z"
}
},
{
"value": 106,
"timeframe": {
"start": "2017-06-01T07:00:00.000Z",
"end": "2017-06-02T07:00:00.000Z"
}
},
{
"value": 141,
"timeframe": {
"start": "2017-06-02T07:00:00.000Z",
"end": "2017-06-03T07:00:00.000Z"
}
},
{
"value": 63,
"timeframe": {
"start": "2017-06-03T07:00:00.000Z",
"end": "2017-06-04T07:00:00.000Z"
}
},
{
"value": 55,
"timeframe": {
"start": "2017-06-04T07:00:00.000Z",
"end": "2017-06-05T07:00:00.000Z"
}
},
{
"value": 64,
"timeframe": {
"start": "2017-06-05T07:00:00.000Z",
"end": "2017-06-06T07:00:00.000Z"
}
},
{
"value": 50,
"timeframe": {
"start": "2017-06-06T07:00:00.000Z",
"end": "2017-06-07T07:00:00.000Z"
}
}
]
}
You can also use the "Embed" button in the explorer to see the exact code used in compiling your query.
e.g.
var query = new Keen.Query("count", {
event_collection: "create_organization",
interval: "daily",
timeframe: "this_7_days",
timezone: "US/Pacific"
});