Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Graphic background color

Former Member
0 Kudos
927

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?

3 REPLIES 3

naimesh_patel
Active Contributor
0 Kudos
547

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

547

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.

rafaelfsouza
Discoverer
0 Kudos
547

did you got the answer for that?

I'm trying to change individual chat color too