Perspective XY Chart Query Binding

I want to add a script so that it only comes out with 1.17 values, what should I do?

Change your named query type to Scalar Query. It will return just a single value.

Tip: your question really has nothing to do with XY Chart.