how can i control the upper limit and lower limit in a graph. If the line value increases or decreases beyond a user defined limit, the graph should cut-off automatically.