In Operator, you can find the variable ID of a data point by pressing three keys simultaneously while viewing an overview or the legend of a graph, and then moving the mouse cursor over the data point. The three keys are CTRL, ALT, and SHIFT.
In an overview:
In a chart: