Cumulative line chart / refactoring