Application Development and Automation 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: 
Read only

Line graph plotting for sales data SAP ABAP

Former Member
0 Likes
477

Hi friends,

I have a requirement to plot a line graph for a given set of data. Now i went through some of the demo programs in the transaction GRAL but none confirm to my requirement. I need to plot minimum 36 points on the x axis (at least 3 years data for each month) and my Y- axis  will have a range from -10 to 10. But the range -10 to 10 should lie above the x-axis. the program 'DEMO_GFW_PRES_SHOW' shows the negative values below the X-axis(mathematically perfect, but i am trying to plot sales data) and X axis can plot maximum of 32 points only....again i tried the program 'GRSTAT_2' (sine/cosine function), this plots negative values above the X-axis but, displays values like 1.5, 2.3,3.7, etc. etc on X-axis. So again it does not serve the purpose as i want whole numbers bot on X and Y axis.

Please let me know if you have any suggestions.

Best Regards,

MK.

Hi friends,

I have a requirement to plot a line graph for a given set of data. Now i went through some of the demo programs in the transaction GRAL but none confirm to my requirement. I need to plot minimum 36 points on the x axis (at least 3 years data for each month) and my Y- axis  will have a range from -10 to 10. But the range -10 to 10 should lie above the x-axis. the program 'DEMO_GFW_PRES_SHOW' shows the negative values below the X-axis(mathematically perfect, but i am trying to plot sales data) and X axis can plot maximum of 32 points only....again i tried the program 'GRSTAT_2' (sine/cosine function), this plots negative values above the X-axis but, displays values like 1.5, 2.3,3.7, etc. etc on X-axis. So again it does not serve the purpose as i want whole numbers bot on X and Y axis.

Please let me know if you have any suggestions.

Best Regards,

MK.

1 REPLY 1
Read only

naimesh_patel
Active Contributor
0 Likes
430

Hello MK,

Not sure if the Graph would be able to handle more than 32 points.

Alternatively, you can try displaying your data in WebPage exposing via RestFul Webservice integrating open source librarby D3.js. Check out one of my post Bring Data to Life – Integrating D3.js in SAP via RESTful Web Service – Sneak Pick at d3.js (Part I)...Let me know what you think about this?

Regards,

Naimesh Patel