add cumulative sum to graphing functions