fix graph overlapping with text