Application Development 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: 

How to change the line colours of line graph in abap??

Pavithra_madhu
Participant
0 Kudos

Hi all,

I want to change the default line colours and add different colours to the line graph using the function GFW_PRES_SHOW or any other function that can pass line colours..

Thanks,

Pavithra

1 REPLY 1

franois_henrotte
Active Contributor
0 Kudos

My advice is to use the later technology (object-oriented) in place of the old function modules.

You should have the class cl_gui_chart_engine present on your system. This one is not limited to 32 values and offers a lot of new functionalities. The settings of the graphics are stored into a XML string (you can generate it through a dedicated tool Chart Designer). You can also create a transformation that will build the XML string if you foresee to use it often.

Look at this article:

http://abapblog.com/articles/how-to/29-create-a-nice-looking-chart-with-cl-gui-chart-engine-part-1-c...