fix min/max for viewport
fix find min/max for all series