Automatic selection of intervals for graph rows