Skip to Content
0
Former Member
Feb 16, 2009 at 02:37 PM

How to dispaly Line chart in output?

19 Views

Hi All,

My requirement is that I want to display a line graph for 'year vs revenue' after calculation of revenue.

I tried this with the FM GRAPH_2D . It displays only bar chart initially, for getting Line chart I have to choose it manually in options after displaying it, but I want to display the line graph directly without any manual operation.

I've used the FM as below,

CALL FUNCTION 'GRAPH_2D'
  EXPORTING
    inform             = 'X'
*    display_type       = ''
    titl               = 'Year Vs Revenue'
  TABLES
    data               = it_summary
  EXCEPTIONS
    gui_refuse_graphic = 1
    OTHERS             = 2.

Please let me know how to get the line chart directly using either FM GRAPH_2D or any other FM if you know that could do this.