add dynamic values to x axis legend