Changed the functionality for the line chart on the view stats page

Signed-off-by: Anurag <anurag.pattnaik@andolasoft.com>