Plotting one variable against another (no time)

Hi, I am monitoring a battery. I have a table in influxdb2 where I am plotting the state of charge of the battery as a function of time. I have another table where I am plotting the voltage of the same battery as a function of time. Could another table be created where the battery voltage (y-axis) is plotted as a function of the battery state of charge (x-axis)?