Why are you using a graph and not a chart?
Provided the property "Ignore Attributes" is NOT set the chart will plot the data using the time info in the waveform.
A bonus going that route the legend will automatically adapt to the channel names used when the task was configured. In the above case "Press".
Ben