Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

Series colors from Business Graphics - Web Dynpro

$
0
0

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.


Viewing all articles
Browse latest Browse all 8950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>