send the min and max y to the visualization library