cancel
Showing results for 
Search instead for 
Did you mean: 

Series colors from Business Graphics - Web Dynpro

Former Member
0 Kudos

Dear Experts,

I've created some Business Graphics in a Web Dynpro application, using the 'static' way (design time) and 'dynamic' way (run time), but I couldn't find the way to assign a certain color to a serie.

When creating the Graphic statically, I could manage most of the graphics options with the 'Edit Customizing' option, but apparently, it's not possible to assign color red to serie 1 and color green to serie 2 (for example).

On the other hand, when creating the graphics dynamically, I create a dynamic node, and assign it to the recently created business graphic:

  lr_graph = cl_wd_business_graphics=>new_business_graphics(
        BIND_SERIES_SOURCE = 'GRPH_DYN'
        CHART_TYPE = cl_wd_business_graphics=>e_chart_type-lines
        HEIGHT = 340
        WIDTH = 750
        ID = 'GRAPH'
        ).

  lr_bgr_cs = cl_wd_category=>new_category(
                  view = wd_this->mr_view
                  bind_description = 'GRPH_DYN.CATEGORY'
                  tooltip = 'Nom du Projet').

  wd_this->value_cs->set_category( lr_bgr_cs ).

  lr_bgr_ss1 = cl_wd_simple_series=>new_simple_series(
                  bind_value = 'GRPH_DYN.SERIE1'
                  label = 'Quality'
                  view = wd_this->mr_view
                  tooltip = 'Qualité des Inspections' ).

  wd_this->value_cs->add_series( lr_bgr_ss1 ).

Apparently there's no method in the graphics, category or series class that allows me to change the series colors. I think it could be done via XML MIME. Is it there any way of creating a XML tree dynamically with some customizing options?

Thanks a lot,

Daniel Monteros.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Yes, you can determine your series color.

1. Go to business graphic, right click -> edit customising.

2. Under Series, create new series, and you can rename them accordingly.

3. Under the series's customising ID, tie this to the Series name you have determined in no.2

4. The data will then appear according to the series color you determined in no. 2.

Hope this help.

Former Member
0 Kudos

Thanks a lot.

Answers (0)