Add category trends

Calculates the average trend of each category, and displays it in
the summary with colors.