Thank you. As it happens I do not want to zoom onto the data so that is a promising start. However my data is collected and displayed on the chart in real time. Does that mean this approach will not work?
To clarify, the blank chart is created on program start, cleared and reset at midnight. My program monitors the inverter 24/7, and will provide either zero when it is offline or the power value. The chart is updated by a timer every 1 minute.
I’m away from just now so I can’t try out your code yet but I will do asap.
However the untidy “0” at the end of the axis was another question waiting on the wings and I agree it looks untidy. Secondly I also have other charts in my project that are using historical data sets and those charts have lots of issues with d, m, y labels which are somewhat unpredictable and seem to vary with the number of data points and data range. The historical data varies from 1 day to inverter lifetime (12 years) and for charts up to data range of 1 year I can “manage” the labels by using a calculated interval min/max based on the number of points and the width of the chart. Always though, last label is missing. I think your approach will be very helpful for those