From the edit view of the Chart component, power users can create one or more charts to include on the component. For each chart, the power user selects the chart style, and provides an Analytics statement to generate the chart data.
On the edit view, each tab represents a chart.
To add a chart to the Chart component, click the + button.
To remove a chart from the component, click the delete button at the top right corner of the chart tab.
On the chart tab, to configure a chart:
For end users, the title is displayed at the top of the chart. If the component contains multiple charts, it is displayed in the chart drop-down list.
In the edit view, the title also is used as the chart tab label.
RETURN YearlyAverages AS SELECT
AVG(Product_MSRPDollars) AS AvgMSRP,
AVG(Product_Avg_National_Sales_PriceDollars) AS AvgNationalSalesPrice,
AVG(Unit_Sale_PriceDollars) AS AvgSalesPrice
GROUP
Note that you can only configure labels for metrics, using the AS functionality in the Analytics statement. The labels must be NCName-compliant (no spaces or special characters).
RETURN MyChart AS SELECT AVG({METRIC}) GROUP BY {XAXIS}
If the statement is not valid, then an error message is displayed.
If the statement is valid, then a "success" message is displayed, as well as the metric values from the statement.
These values are used to as the available options in the drop-down lists used by end users to control the chart display. Cross tabs are grouped aggregations such as cross-tabulated totals over one or more attributes.
The default is 10.
The Metric selector section is displayed, listing all of the metrics from the current Analytics statement.
For example, your Analytics statement may include a metric to control the display order of the chart elements. However, you may not want the chart to display this value.