fix graph legend alignment