refactoring data names for graph legend