Control lines of a graph associated with a variable

I have 2 process variables, one is the set point and the other is the process value, the process value is the one I want to graph, and in its graph I would like to include some bars or control lines associated with the sp variable, and what when the sp changes, these bars adjust themselves, do you know if this is possible?
I attach images of my graph and my database query.

As you can see in the image I read a temperature from the database and below you can see the query to the database, and in that graph I would like to place the control bars associated with the SP variable of the database.

If someone could help me I would appreciate it since I can’t find any information about it, thanks