added linechart and associated data crunching