add legend to bar target prediction plot