add legend to data distribution graph