Hi everyone,
I’m working with a Google Sheet connected to AppSheet. Each row in my sheet has a date associated with it, and the dates are in chronological order but not evenly spaced — for example, some dates are just one day apart, others might be a week or more.
When I generate a chart in AppSheet (e.g., a line chart), the dates on the x-axis appear evenly spaced, regardless of the actual time intervals between them. This makes the visual representation misleading.
I’ve checked that my sheet date column in formatted as Date type.
I want the spacing between dates on the chart to reflect the actual number of days between them — so if two dates are 10 days apart, they should appear farther apart than two dates that are just 1 day apart.
Has anyone managed to do this in AppSheet? Is there a way to make the x-axis scale based on real date intervals?
Hi! There may be a way to do this with the chart functions that are part of the AppSheet platform but I have chosen to do something similar with QuickChart, an external service that can be integrated and used within AppSheet.
Here’s an example of something I’m doing that plots events on a chronological chart (the unit of measure is “session number” but it could easily be “date”).
Here’s a sample from my app of an actually QuickChart URL that makes and image that I show in my app via an image column. If you copy it and paste it into a browser, you’ll see the image. The trick is to make an AppSheet expression that causes QuickChart to construct the graphic you’re imagining.