I agree with both you and Rick on "a better way to make such a graph". Here my motivation was…