Select Results--> Display chart to define the layout for the chart being created from the query results. See Visualizing data for more information.