chartjs update (#809)

This commit is contained in:
choper725 2024-01-23 23:16:10 +02:00 committed by GitHub
parent 69e89e9816
commit 88b425bf8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,6 +104,7 @@ CLASS z2ui5_cl_cc_chartjs DEFINITION
point_hover_radius TYPE i, point_hover_radius TYPE i,
rtl TYPE abap_bool, rtl TYPE abap_bool,
datalabels TYPE ty_datalabels, datalabels TYPE ty_datalabels,
tension TYPE string,
END OF ty_dataset. END OF ty_dataset.
TYPES ty_datasets TYPE STANDARD TABLE OF ty_dataset WITH DEFAULT KEY. TYPES ty_datasets TYPE STANDARD TABLE OF ty_dataset WITH DEFAULT KEY.
@ -264,24 +265,39 @@ CLASS z2ui5_cl_cc_chartjs DEFINITION
content TYPE string, content TYPE string,
display TYPE abap_bool, display TYPE abap_bool,
font TYPE ty_font, font TYPE ty_font,
x_value TYPE string,
y_value TYPE string,
END OF ty_label. END OF ty_label.
TYPES: TYPES:
BEGIN OF ty_annotations, BEGIN OF ty_annotations,
type TYPE string, type TYPE string,
border_color TYPE string, border_color TYPE string,
border_width TYPE string, border_width TYPE string,
click TYPE string, background_shadow_color TYPE string,
scaleid TYPE string, background_color TYPE string,
value TYPE string, click TYPE string,
draw_time TYPE string, enter TYPE string,
x_max TYPE string, leave TYPE string,
x_min TYPE string, scaleid TYPE string,
x_scaleid TYPE string, value TYPE string,
y_scaleid TYPE string, draw_time TYPE string,
y_max TYPE string, x_max TYPE string,
y_min TYPE string, x_min TYPE string,
label TYPE ty_label, x_scaleid TYPE string,
y_scaleid TYPE string,
y_max TYPE string,
y_min TYPE string,
label TYPE ty_label,
sides TYPE string,
radius TYPE string,
font TYPE ty_font,
x_value TYPE string,
y_value TYPE string,
rotation TYPE string,
shadow_blur TYPE string,
shadow_offset_x TYPE string,
shadow_offset_y TYPE string,
END OF ty_annotations. END OF ty_annotations.
TYPES: TYPES:
@ -693,8 +709,9 @@ CLASS Z2UI5_CL_CC_CHARTJS IMPLEMENTATION.
` var tConfig = JSON.stringify(oConfig);` && |\n| && ` var tConfig = JSON.stringify(oConfig);` && |\n| &&
` tConfig = tConfig.replace("dataVenn","data");` && |\n| && ` tConfig = tConfig.replace("dataVenn","data");` && |\n| &&
` tConfig = tConfig.replace("scaleid","scaleID");` && |\n| && ` tConfig = tConfig.replace("scaleid","scaleID");` && |\n| &&
` tConfig = tConfig.replace("xScaleid","xScaleID");` && |\n| && ` tConfig = tConfig.replaceAll("xScaleid","xScaleID");` && |\n| &&
` tConfig = tConfig.replace("yScaleid","yScaleID");` && |\n| && ` tConfig = tConfig.replaceAll("yScaleid","yScaleID");` && |\n| &&
` tConfig = tConfig.replaceAll("dataXYR","data");` && |\n| &&
` oConfig = JSON.parse(tConfig);` && |\n| && ` oConfig = JSON.parse(tConfig);` && |\n| &&
` this.setProperty("config", oConfig );` && |\n| && ` this.setProperty("config", oConfig );` && |\n| &&
` if(oConfig){ fixJsonLibs(oConfig); };` && |\n| && ` if(oConfig){ fixJsonLibs(oConfig); };` && |\n| &&