Timeseries Chart Scale skips to the next month showing confusing results
- Dominant language
- Clojure
- Stars
- 49.3k
- Forks
- 6.8k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 653
Description
### Describe the bug
Easier to see than to explain. This is the data as a Table:

This is the Data as a bar chart with Ordinal Scale:

This is the Data as a bar chart with Timeseries Scale:

### To Reproduce
I am using Postgres but you can checkout this [question on stats](https://stats.metabase.com/question/20453-timeseries-confusing-chart)
1. Go to New -> SQL Question -> Run the below:
```
Select TO_DATE('30/06/2015', 'DD/MM/YYYY') AS date, 5555 AS value
UNION
Select TO_DATE('30/09/2015', 'DD/MM/YYYY') AS date, 6555 AS value
```
2. Visualise as a Bar chart and set the Scale to a Timeseries, notice the actual Data doesn't match with the chart:


### Expected behavior
The Timeseries scale matches what you get in the chart. So my expectation would be to get a June Bar and a July, August empty bars then a September Bar. Something like the below when you change the Date from 30th to 14th

### Logs
None that are relevant
### Information about your Metabase installation
Happens both on 50 and 51
### Severity
Might look like a cosmetic bug but when you hit this you don't understand what is going on
### Additional context
_No response_
Contributor guide
Research direction
Start by running the provided PostgreSQL query in Metabase and comparing the ordinal and timeseries bar charts. Investigate the timeseries scale behavior for dates such as June 30 and September 30; done means the chart represents the source dates correctly, including empty intervals between them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100