I managed to get it working with a combination of afterTickToLabelConversion callback and the major option for ticks by adding a major tick in the callback which represents the latest value displayed on the X axis. For the code, please see my answer: https://stackoverflow.com/a/79163446/28101131