As it is a straight line graph showing deceleration
We can find
tanθ=v0−vx
v0x0=v0−vx
On solving the above equation we get the relation between v and x is given as
v=−v0x0x+v0