Say I have events that occur on sporadic dates, like this:
Date | Qty |
---|---|
2022-01-01 | 100 |
2022-02-08 | 200 |
2022-06-17 | 150 |
2022-08-03 | 700 |
2023-01-27 | 300 |
I have rows for arbitrary days in Jan, Feb, June, Aug this year, and Jan next year. I could even have multiple entries in a single month.
I want to insert a chart with the dates on the horizontal axis, and quantities on the vertical axis. The horizontal gap between data points should be proportional to the number of days in between each row of data. Something like:
700
----
/ ----
---- 300
/
200 ------
/ ----- 150
100
---------------------------------------------------
Jan Feb Jun Aug Jan
Is this possible, without having to insert empty rows into the table for every month where there is no data?
As far as I can tell, by default google sheets is spacing each data point equally across the X axis, regardless of how far apart the dates are. Here is a screenshot showing what I mean:
Note that the columns are evenly spaced. In the data though, columns 1 & 2 are ~one month apart, while columns 2 & 3 are ~four months apart. I want the columns to be spaced accordingly.