User Interface Reference
17.5 Analytic components
17.5.1 Chart
You can add charts to your application to present your data graphically. Charts can often emphasize irregularities or trends in your data, and help you focus your business analysis on those areas. Once you have dragged and dropped a chart in the layout editor, the chart is displayed with a predefined image. As soon as you assign a data source to the chart, it displays the data of the data source using the column chart type by default.
TheChartcomponent has the following specific properties:
2012-11-08 79
Property Description Property Value
Property
Displays all data source aliases. If you have cre- ated several data sources for the application, you can change the data source for the chart by choosing the according data source alias. Note:
As you can use the same data source several times within one application, you work in the de- sign tool with data source aliases as reference names.
name of data source alias, for example "DS_1"
data source
Specifies the type of a chart. Several chart types are available to help you visualize your data:
• pie chart
• line chart
• column chart
• stacked column chart
• 100% stacked column chart
• bar chart
• stacked bar chart
• 100% stacled bar chart
• surface chart
• radar chart
• multiple radar chart
• bubble chart
• scatter chart the property values correspond to the
charty types described aside. chart type
Specifies whether the positions of the horizontal and vertical axes should to be swapped. true, false
swap dis- play axes
Specifies whether results should be displayed. If you have results displayed on the crosstab, you can choose to show these results in charts that have the same data source.
true, false display re-
sults
Specifies the style of the chart. standard, standard 2, glossy, glossy 2,
high contrast, high contrast glossy style
2012-11-08 80
Property Description Property Value
Property
Specifies whether and where the legend is dis- played.
hidden, left, right, top, bottom legend
positon
Specifies which background color is to be dis- played for the chart.
default, transparent back-
ground col- or
Opens the script editor. With this property you can enable user interaction with the chart by writing scripts. ClickCTRL+Spaceto see the list of available methods for the application, the data source alias and the chart. Choose one of them or use the statement wizard. The wizard guides you through the process of creating a statement. The following specific methods are currently available for the chart:
• getChartType • getSelectedMember • getStyle • isVisible • setChartType • setStyle • setVisible • showTotals • swapAxes Note:
The "On Select" event of the chart is triggerd when a value is selected and also when a value is deselected.
none on select
Related Topics
•Get selected member (getSelectedMember)
•Get style (getStyle)
•Set chart type (setChartType)
•Show totals (showTotals)
•Swap axes (swapAxes)
17.5.2 Crosstab
2012-11-08 81
The crosstab displays multi-dimensional data in a grid with analytic functions. After you have dragged and dropped a crosstab in the layout editor, the crosstab is initially displayed with scrollbars and dummy data. As soon as you assign a data source to the crosstab, it displays the data of the data source. Note:
• The scrollbars of the crosstab displayed in the editor are not intended to be used during design time. They are only intended for layout and design purposes.
• The scrollbars are only displayed if the crosstab has a minimum size (row headers and column headers and a specific number of data cells).
For more information, see chapter “Crosstabs” in the user guide of SAP BusinessObjects Analysis, editon for OLAP athttp://help.sap.com
TheCrosstabcomponent has the following specific properties:
2012-11-08 82
Property Description Property Value
Property
Displays all data source aliases. If you have created serveral data sources for the application, you can change the data source for the crosstab by choosing the relevant data source alias.
Note:
As you can use the same data source several times within one application, you work in the design tool with data source aliases as reference names.
name of data source alias (for example "DS_1") data source
Specifies whether scaling factors are shown in the crosstab header. Measures can have scaling factors and units or currencies. Units or currencies are displayed for every measure, but scaling factors are not. If you activate the Display Scaling Factorsproperty, an additional header row is added to the row or column header. This additional header row contains information about the scaling factor and the unit or currency, as long as it is consistent (for example, EUR 1,000).
true, false show scaling
factors
Specifies whether the component space should be filled as defined by layout properties. If you set the property value tofalse, the crosstab is displayed in its actual size but within a frame that has the size defined in the layout properties. If you set the property totrue, the crosstab is adjusted and displayed in the exact size defind in the layout properties.
true, false always fill
Enables smooth scrolling experience. Using this property is recommended when creating mobile applications and/or applications with low data volume. If you do not activate pixel-based scrolling, then row-based/column-based scrolling will be applied by default.
Note:
This property is mandatory for setting the following proper- ties of row and column limits:
• For iPad applications, SAP recommends that you limit the total number of cells (the product of rows*columns) to 500, to imporve performance and user experience.
• For desktop browser applications with pixel-based scrolling, the total number of cells can be set higher, depending on the performance of the client PC. true, false
pixel-based scrolling
Specifies the maximum number of rows for pixel-based scrolling. With this property you can set the number of rows to be displayed. For iPad applications, SAP recom- mends a maximum of 20 rows.
numeric value for rows; de- fault: 20 (max)
row limit
2012-11-08 83
Property Description Property Value
Property
Specifies the maximum number of columns for pixel-based scrolling. With this property you can set the number of columns to be displayed. For iPad applications, SAP rec- ommends a maximum of 20 columns.
numeric value for clolumns; default: 20 (max)
column limit
Enables users to select rows and columns in the crosstab by hovering over and clicking the inner members of the required dimensions. You cannot hover over or select re- sult cells.
true, false enable selec-
tion
Opens the script editor. With this property/event, you can enable user interaction with the crosstab by writing scripts. ClickCTRL+Spaceto see the list of available methods for the application, the data source alias and the crosstab. Choose one of them or use the statement wizard. The wizard guides you through the statement creation process. The following specific methods are currently available for the crosstab:
• getSelectedMember
For further information, read the relevant method descrip- tion in the API reference.
Note:
TheOn Selectevent of the crosstab triggered when a value is selected and also when a value is deselected. none
on select
Related Topics
•Get selected member (getSelectedMember)
17.5.3 Dimension filter
With the dimension filter, you can add a generic filter for one dimension to an application, without the need to use scripting. The dimension filter provides an easy way for the end user to define a filter for a single dimension of a data source. At runtime a click on the dimension filter opens a popup with the "selection view" of the dimension, on the right-hand side of the dimension filter.
Restriction:
If a dimension has more than 100 members, the members are not listed during runtime. Instead the user is asked to use the search function.
TheDimension Filtercomponent has the following specific properties:
2012-11-08 84
Property Description Property Value
Property
Displays all data source aliases. If you have created serveral data sources for the application, you can change the data source for the filter panel by choosing the relevant data source alias. Note:
As you can use the same data source several times within one application, you work in the design tool with data source aliases as reference names.
name of data source alias (for ex- ample "DS_1")
data source
If you want the filter to be applied to other data sources, you can also define target data sources. If the target data sources contain the same di- mension as the (source) data source, the filter applies the dimension to the target data sources in the same way as in the (source) data source. The target data sources have to be existing data sources aliases added to the application and separated by a semicolon.
names of target data source aliases (for example, "DS_1; DS_2" ) target data
sources (opi- onal)
Specifies the dimension to be filtered. You can select a dimension with the "Dimension Selec- tion" dialog.
dimension dimension
Specifies the width of the popup displayed when the user clicks on the dimension filter at runtime. numeric value in pixel
popup width
Specifies the height of the popup displayed when the user clicks on the dimension filter at runtime. numeric value in pixel
popup height
17.5.4 Filter panel
With the filter panel, you can add a generic filter to an application without using scripting. The filter panel makes it easy for the end user to define a filter for the data source. To use the filter panel you have to add at least one data source to the application and assign it to the filter panel.
Restriction:
If a dimension has more than 100 members, the members are not listed during runtime. Instead the user is asked to use the search function.
TheFilter Panelcomponent has the following specific properties:
2012-11-08 85
Property Description Property Value
Property
Displays all data source aliases. If you have creat- ed several data sources for the application, you can change the data source for the filter panel by choosing the relevant data source alias.
Note:
As you can use the same data source several times within one application, you work in the design tool with data source aliases as reference names. name of data source alias (for
example "DS_1") data source
If you want the filter to be applied to other data sources, you can also define target data sources. If the target data sources contain the same dimen- sion as the (source) data source, the filter applies the dimension to the target data sources in the same way as in the (source) data source. The target data sources have to be existing data sources aliases added to the application and sep- arated by a semicolon.
names of target data source aliases (for exmaple "DS_1; DS_2" )
target data sources (option- al)
You can set a title for the filter panel. The title is displayed in the middle of the filter panel header. yourTitel
title