2016 Apr 07 3:30 PM
Hello,
We use GRAPHICS_GUI_CE_DEMO tool in order to create our custom graphic in screen.
Whenever I run the report our graphic has white background color and X axis points values comes horizontal on the screen.
I need to open graphic settings and change them manuel way each time I run the report.
How I can save this setting or Is there anyway to set transparent background color and vertical x axis by writing code?
2016 Apr 07 7:22 PM
Charts created using CL_GUI_CHART_ENGINE are fully configurable, as You can provide the configuration for the charts.
To see the full configuration, you can run the demo program GRAPHICS_GUI_CE_DEMO and open the configuration by pressing the pencil icon. Once changes are made, use the Save button to save the config XML on local system. Open this XML and try to create your graph accordingly.
For your specific background color question, you can pass this while building the configuration (Subroutine CREATE_CUSTOM_DEMO in program GRAPHICS_GUI_CE_DEMO).
l_elements = p_ixml_doc->create_simple_element(
name = 'Elements' parent = l_root ).
l_chartelements = p_ixml_doc->create_simple_element(
name = 'ChartElements' parent = l_elements ).
l_bg = p_ixml_doc->create_simple_element(
name = 'Background' parent = l_chartelements ).
l_element = p_ixml_doc->create_simple_element(
name = 'Color' parent = l_bg ).
l_element->if_ixml_node~set_value( '@29' ). "Blue color
Regards,
Naimesh Patel
2019 Sep 15 7:50 PM
Hi Naimeh,
you provided an excellent example for the background color!
Do you think it's possible to change color for individual bar within a serious? In the DEMO example, is it possible to have a Coffee bar different color in each quarter based on the bar value?
Appreciate your help.
Oleg.
2020 Jul 21 5:05 PM
did you got the answer for that?
I'm trying to change individual chat color too