Make graphs adapt to the data being displayed.