# Configuring Chart

The power user can set the following preferences for the Chart component.

The power user can add a fixed Analytics statement to the Chart component, or configure a parametric Analytics statement that allows end users to see drop-down lists across the top of the chart.
Note: Unlike most components, the Chart component includes online help. This help, which mostly provides tips on working with Analytics statements, can be accessed from the same menu that contains the Preferences option. For more detailed information on the Endeca Analytics language, see the Endeca Analytics Guide.

- Data source controls: Select from the available data sources in the drop-down list, and then click Update data source to bind your selection to the component.

- Chart options: Define the height and width of the chart and set a name for the control that allows end users to choose from multiple charts when available. In addition, set a threshold for the number of Analytics results the query returns, and create a message to display if the query results exceed that threshold.

- Chart Title and Style: Name the chart and select the type of chart to display. The Chart component supports the following chart styles: Vertical Bar, Stacked Vertical Bar, Horizontal Bar, Line, Pie, and Line Bar Combo.

- Chart configuration tabs: Click the + to add additional chart tabs. You can configure a different chart on each tab for your end users.

- Analytics Statement: Type your Analytics statement here. Note that labels can be configured for metrics only, using the AS functionality in an Analytics statement. After the Analytics statement has been entered, use the Test analytics query button to test the validity of the statement before saving preferences.

- Metric Options, X Axis Options, and Cross tab: For parametric Analytics charts, provide options for the drop-down lists your end users will access. Cross tabs are grouped aggregations such as cross-tabulated totals over one or more dimensions.

- Metric Selector: Allows you to specify an ORDER BY in the Analytics statement without including it in the display. In the example below, if you did not want to include the statement's ORDER BY "Avg Sales Price" metric in the chart, you would un-check that metric in the list. Note that the Metric Selector does not appear until you have tested and saved the Analytics query.

- Enable Top-N Sort and Enable end user control: When the Enable Top-N sort box is checked, the chart's results can be sorted in ascending or descending order. If the Enable end user control box is also checked, the end user can toggle the sort order.