If it's only the last bucket causing issues because it sometimes has no data, you can also try enabling the "Drop last bucket" option in the Panel options.
Apologies, I see now you said that in your original post. You may have already found the best workaround with max. Depending on what version of 6.x you were using before, the change in behavior may be due to the switch from math.js to tinymath.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.