Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How can I horizontally space data points on a chart when the dates are arbitrary?

$
0
0

Say I have events that occur on sporadic dates, like this:

DateQty
2022-01-01100
2022-02-08200
2022-06-17150
2022-08-03700
2023-01-27300

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 ------            /          ----- 150100---------------------------------------------------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.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>