By default, the legend is displayed to the right of the graph. However, you can choose to display it horizontally across the top of the graph.