Modify legend to stop it from obscuring data and max chart area, close #6.