Skip to content

Commit 44f60b0

Browse files
authored
update demo 148 (#102)
1 parent 40c99bb commit 44f60b0

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

src/z2ui5_cl_demo_app_148.clas.abap

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ CLASS Z2UI5_CL_DEMO_APP_148 IMPLEMENTATION.
6969
autocolors = abap_false
7070
venn = abap_true
7171
wordcloud = abap_true
72+
annotation = abap_true
7273
) )->get_parent(
7374
)->_generic( ns = `html` name = `script` )->_cc_plain_xml( z2ui5_cl_cc_chartjs=>load_cc( )
7475
)->stringify( ) ).
@@ -134,6 +135,15 @@ CLASS Z2UI5_CL_DEMO_APP_148 IMPLEMENTATION.
134135
ms_chartjs_config_bar-type = 'bar'.
135136
ms_chartjs_config_bar-data-labels = VALUE #( ( `Red` ) ( `Blue` ) ( `Yellow` ) ( `Green` ) ( `Purple` ) ( `Orange` ) ( `Black` ) ).
136137

138+
ms_chartjs_config_bar-options-plugins-annotation-annotations-shape1-type = 'line'.
139+
ms_chartjs_config_bar-options-plugins-annotation-annotations-shape1-border_color = 'black'.
140+
ms_chartjs_config_bar-options-plugins-annotation-annotations-shape1-border_width = '5'.
141+
ms_chartjs_config_bar-options-plugins-annotation-annotations-shape1-label-background_color = 'red'.
142+
ms_chartjs_config_bar-options-plugins-annotation-annotations-shape1-label-content = 'Test Label'.
143+
ms_chartjs_config_bar-options-plugins-annotation-annotations-shape1-label-display = abap_true.
144+
ms_chartjs_config_bar-options-plugins-annotation-annotations-shape1-scaleid = 'y'.
145+
ms_chartjs_config_bar-options-plugins-annotation-annotations-shape1-value = '14'.
146+
137147
ls_dataset-border_width = 1.
138148
ls_dataset-label = `# of Votes`.
139149
ls_dataset-rtl = abap_true.
@@ -262,25 +272,25 @@ CLASS Z2UI5_CL_DEMO_APP_148 IMPLEMENTATION.
262272
)->_z2ui5( )->chartjs( canvas_id = `bar`
263273
height = `300`
264274
width = `400`
265-
config = client->_bind_edit( val = ms_chartjs_config_bar pretty_name = 'X' )
275+
config = client->_bind_edit( val = ms_chartjs_config_bar pretty_name = 'X' compress = client->cs_compress_mode-full )
266276
).
267277
fb1->vbox( justifycontent = `Center`
268278
)->_z2ui5( )->chartjs( canvas_id = `bar2`
269279
height = `300`
270280
width = `600`
271-
config = client->_bind_edit( val = ms_chartjs_config_bar2 pretty_name = 'X' )
281+
config = client->_bind_edit( val = ms_chartjs_config_bar2 pretty_name = 'X' compress = client->cs_compress_mode-full )
272282
).
273283
fb2->vbox( justifycontent = `Center`
274284
)->_z2ui5( )->chartjs( canvas_id = `venn`
275285
height = `300`
276286
width = `600`
277-
config = client->_bind_edit( val = ms_chartjs_config_venn pretty_name = 'X' )
287+
config = client->_bind_edit( val = ms_chartjs_config_venn pretty_name = 'X' compress = client->cs_compress_mode-full )
278288
).
279289
fb2->vbox( justifycontent = `Center`
280290
)->_z2ui5( )->chartjs( canvas_id = `wordCloud`
281291
height = `300`
282292
width = `600`
283-
config = client->_bind_edit( val = ms_chartjs_config_wordcloud pretty_name = 'X' )
293+
config = client->_bind_edit( val = ms_chartjs_config_wordcloud pretty_name = 'X' compress = client->cs_compress_mode-full )
284294
).
285295

286296

0 commit comments

Comments
 (0)