Skip to Content
author's profile photo Former Member
Former Member

GFW chart with two axis

Hi all.

I want to display data in a chart. I use the gfw (cl_gui_gp_pres). I want to display two different x-values in the chart. e.g. for all months: costs and pieces

Januaray: 50pcs 10000€

February: 30pcs 7500€

March: 40pcs 10000€

Does anybody of you know how to give the two different y-values (for one x-value) to the data-container? There is the possibility to display and customize the two axis. So there has to be a way to display two different values.

Do you have any code-example?

wbr

Michael Ennemoser

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 03:27 PM

    Hi Michael,

    Take a look at demo program GFW_DEMO_PRES1.

    Hope this helps..

    Sri

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2005 at 01:18 PM

    Hi all.

    In the meantime I found out, how to attach the values to the second axis.

    LOOP AT it_groups_abw INTO wa_group.

    CREATE OBJECT bundle_values EXPORTING instance_id = co_graf_val_y2.

    CALL METHOD bundle_values->if_customizing~set

    EXPORTING

    value = 1

    attr_id = cl_cu_values=>co_axis

    IMPORTING

    retval = g_retval.

    CALL METHOD g_100_graph_proxy->if_graphic_proxy~add_cu_bundle

    EXPORTING

    port = if_graphic_proxy=>co_port_chart

    key = wa_group

    bundle = bundle_values

    IMPORTING

    retval = g_retval.

    CLEAR bundle_values.

    ENDLOOP.

    But if I do it in this way, the chart-bars for the second axis are not displayed in a color and all of them belongs to the same group. Does anybody have an idea how to solve this problem?

    Thanks a lot.

    wbr

    Michael

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.