Storing values in influxDB on a cron/schedule

Is there some way to configure the InfluxDB integration to write the value of sensors on a schedule as well as when the value changes. I’m currently graphing things in Grafana and it causes weird gaps and behaviour when a value stays constant for a while and then changes. I’d prefer to see the constant value on the graph instead of interpolated lines joining the points.

For example, this sensor was stable in that gap (so should have been a straight line) but then jumped up and now I have this weird curve instead of a vertical increase.

Openhab’s influxDB has the option to write the value on change or on a cron, something like that would be great?

Or this one where the battery has reached 100% and is staying there for now, but the line just stops when it got there. When it starts to discharge I’m going to have an awkward sloped line to join the points