Chart
Use
With the Chart UI element you can embed different chart types of CVOM (Common Visualization Object Modeler) chart library into your Web Dynpro ABAP application. This JavaScript-based library uses open web standards (e.g. HTML5, CSS3, and SVG) and provides a range of chart types (e.g. line, bar, or pie charts), which you can use to display data and its relationships graphically. With property type you can specify the chart type the data is to be displayed in.
Example of the Visual Display
Notes on Use
-
Always run Web Dynpro applications with embedded Charts in the standard mode of the browser. To do this, set application parameter bWDPREFERREDRENDERING to value STANDARDS.
For more information, see Application Parameters and URL Parameters, and SAP Note .1753544
. - 3D charts are not supported by all browsers.
- To use the Chart UI element the following SICF service must be active:
/sap/public/bc/ui5_ui5
For more information, see Active Services in SICF.
-
Since the visualization of Chart is not adjusted if you set the High Contrast Black theme, you have to ensure the chart complies with accessibility standards. If you want to create an accessible application, make sure that the embedded Chart has sufficient color contrast.
-
There is no support for "right-to-left". The UI is not mirrored, which means the same format is displayed for right-to-left and left-to-right. The mix of right-to-left and left-to-right scripts in texts for axles, legends, etc. leads to problems.
Implementation Details
|
Runtime Class |
CL_WD_CHART |
Properties in View Designer
|
Name |
Type |
Initial Value |
Bindable |
|---|---|---|---|
|
STRING |
(automatic) |
No |
|
|
WDUI_CONTEXT_MENU_BEHAVIOUR |
inherit |
No |
|
|
WDY_MD_UI_ELEMENT_REFERENCE |
No |
||
| datafeedingstring | STRING | Yes | |
|
STRING |
Yes |
||
|
WDY_BOOLEAN |
true |
Yes |
|
|
STRING |
Yes |
||
|
STRING |
Yes |
||
| selectionstring | STRING | Yes | |
| styleClassName | STRING | Yes | |
|
Translatable text |
Yes |
||
|
STRING |
viz/line |
Yes |
|
|
WDUI_VISIBILITY |
visible |
Yes |
|
|
STRING |
Yes |
Events in View Designer
|
Name |
|---|
| onSelect |
Other properties that can be inherited are defined in the related higher-level classes. The related UI elements are:
Dynamic Programming
For dynamic programming, the same properties, events, and aggregations as in the View Designer are available. But note that the spelling format and use of upper/lower case is different.
Dynamic Programming of Properties
| View Designer Name | Runtime Name | |
|---|---|---|
|
CONTEXT_MENU_BEHAVIOUR |
WDUI_CONTEXT_MENU_BEHAVIOUR |
|
|
contextMenuBehaviour: inherit |
CL_WD_C_TABLE=>E_CONTEXT_MENU_BEHAVIOUR-INHERIT |
|
|
contextMenuBehaviour: provide |
CL_WD_C_TABLE=>E_CONTEXT_MENU_BEHAVIOUR-PROVIDE |
|
|
contextMenuBehaviour: suppress |
CL_WD_C_TABLE=>E_CONTEXT_MENU_BEHAVIOUR-SUPPRESS |
|
|
CONTEXT_MENU_ID |
WDY_MD_UI_ELEMENT_REFERENCE |
|
| datafeedingstring | DATAFEEDINGSTRING | STRING |
|
DATASTRING |
STRING |
|
|
ENABLED |
WDY_BOOLEAN |
|
|
HEIGHT |
STRING |
|
|
OPTIONSSTRING |
STRING |
|
| SELECTIONSTRING | STRING | |
| styleClassName | STYLE_CLASS_NAME | STRING |
|
TOOLTIP |
WDY_MD_TRANSLATABLE_TEXT |
|
|
TYPE |
STRING |
|
|
VISIBLE |
WDUI_VISIBILITY |
|
|
visible: none |
CL_WD_C_TABLE=>E_VISIBLE-NONE |
|
|
visible: visible |
CL_WD_C_TABLE=>E_VISIBLE-VISIBLE |
|
|
WIDTH |
STRING |
Dynamic Programming of Events
|
View Designer Name |
Runtime Name |
|---|---|
|
onSelect |
ON_SELECT |
&EXAMPLE&
You can find an example in the system in component .WDR_TEST_CHART.