Lets get back to basics
Work is done when the point of action of a force moves in the direction of the force.
Basically, for a constant force Work (J) = Force (N) x Distance (m)


A graph of force against distance is a straight line and the work done is equal to the area under the graph.