Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

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

    Hi Michael,

    Take a look at demo program GFW_DEMO_PRES1.

    Hope this helps..

    Sri

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    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 comment
    10|10000 characters needed characters exceeded