added option historyWindow (aligns horizontal min / max to history)