Selecting json data in dashboard

I am quit new in Grafana. I am using node-red and influxDB with it. Basically I am running node-red (which execute a python code), with node-red I am getting a data from gauge strain cell, and I have them with a json format as follow :
{ “X” : “-0.18102575652004627”,“Y” : “0.8599837901151595”}

Those data are saved inside influxDB, then I would like to display them in Grafana. The X value will be the X axis and Y value the Y axis.

I suppose that I have to create 2 Query and load X and Y and then set the parameters to display them correctly.
How can I select X inside a single query ?
Thank you