show legend on top of graph instead of right