cancel
Showing results for 
Search instead for 
Did you mean: 

How can i do different colors for the category in business graphics

Former Member
0 Kudos

Hi everybody,

i have a business graphics and i need different colors for the category. my business graphics is a gantt.

for example

category1

category2

category2

and so on.

Is there a solution for this? How can i do it?

Best regards,

Markus

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sorry.

In my opinion, this requirement can not be resolved.

Generally, we use Business Graphic with Category, we just follow:


DATA:lr_graph TYPE REF TO cl_wd_business_graphics.

lr_graph = cl_wd_business_graphics=>new_business_graphics(
    bind_series_source = 'NODE_DYN'
    chart_type = cl_wd_business_graphics=>e_chart_type-BARS
    height = 340
    width = 750
*     BIND_TOOLTIP = 'GRAPH.TT'
    id = 'GRAPH' ).

DATA: lr_bgr_cs TYPE REF TO cl_wd_category.
lr_bgr_cs = cl_wd_category=>new_category(
view = wd_this->mr_view
bind_description = 'NODE_DYN.CATEGORY').
lr_graph->set_category( lr_bgr_cs ).

If we go to SE24, to check the class "CL_WD_CATEGORY", we cannot find any method or attribute about how to manipulate the "Category Font Color"...

Maybe,any other expert can give you fantastic solution, hope. Best wishes.