@@ -69,6 +69,7 @@ CLASS Z2UI5_CL_DEMO_APP_148 IMPLEMENTATION.
69
69
autocolors = abap_false
70
70
venn = abap_true
71
71
wordcloud = abap_true
72
+ annotation = abap_true
72
73
) )->get_parent(
73
74
)->_generic( ns = `html` name = `script` )->_cc_plain_xml( z2ui5_cl_cc_chartjs=>load_cc( )
74
75
)->stringify( ) ).
@@ -134,6 +135,15 @@ CLASS Z2UI5_CL_DEMO_APP_148 IMPLEMENTATION.
134
135
ms_chartjs_config_bar-type = 'bar' .
135
136
ms_chartjs_config_bar-data-labels = VALUE #( ( `Red` ) ( `Blue` ) ( `Yellow` ) ( `Green` ) ( `Purple` ) ( `Orange` ) ( `Black` ) ).
136
137
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
+
137
147
ls_dataset-border_width = 1 .
138
148
ls_dataset-label = `# of Votes` .
139
149
ls_dataset-rtl = abap_true .
@@ -262,25 +272,25 @@ CLASS Z2UI5_CL_DEMO_APP_148 IMPLEMENTATION.
262
272
)->_z2ui5( )->chartjs( canvas_id = `bar`
263
273
height = `300`
264
274
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 )
266
276
).
267
277
fb1->vbox( justifycontent = `Center`
268
278
)->_z2ui5( )->chartjs( canvas_id = `bar2`
269
279
height = `300`
270
280
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 )
272
282
).
273
283
fb2->vbox( justifycontent = `Center`
274
284
)->_z2ui5( )->chartjs( canvas_id = `venn`
275
285
height = `300`
276
286
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 )
278
288
).
279
289
fb2->vbox( justifycontent = `Center`
280
290
)->_z2ui5( )->chartjs( canvas_id = `wordCloud`
281
291
height = `300`
282
292
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 )
284
294
).
285
295
286
296
0 commit comments