Skip to Content
0
Former Member
Nov 03, 2013 at 08:10 PM

Problem with defining colors in columns using chart generator

143 Views

Dear All,

I am using the chart designer to generate the XML template for a columns chart. Then I am using the xml generated in my ABAP program. Every thing like background color, title etc are coming as per the requirement and defined in the XML template, except the color of the columns. The color of the columns are coming as the default color and not the ones I set in my designer. I am sure I am missing something, but not sure what

Here is my sample code for the creation of the series

f_series1 = f_ixml_data_doc->create_simple_element(

name = 'Series'

parent = f_chartdata ).

f_series1->set_attribute( name = 'customizing'

value = 'Series1' ).

f_series1->set_attribute( name = 'label' value = 'Open' ).

f_series2 = f_ixml_data_doc->create_simple_element(

name = 'Series'

parent = f_chartdata ).

f_series2->set_attribute( name = 'customizing'

value = 'Series2' ).

f_series2->set_attribute( name = 'label' value = 'Closed' ).

f_series3 = f_ixml_data_doc->create_simple_element(

name = 'Series'

parent = f_chartdata ).

f_series3->set_attribute( name = 'customizing'

value = 'Series3' ).

f_series3->set_attribute( name = 'label' value = 'Backlog' ).

I am not sure what I am missing 😔

Thanks in advance for your help

Best Regards

Anirban