Added legends to the graphs.