The variation of the acceleration a of the particle executing S.H.M. with displacement y is as shown in the figure
a=-ω2y
The graph for the above is a straight line with negative slope.