Bar chart and pie chart in same screen at a time

hi experts,
I am trying to display the bar chart and pie chart in two separate containers in same screen .I wrote code for this in PBO of screen by using the function module  GFW_PRES_SHOW , but it is showing one chart at a time which is lastly executed in the PBO.
I need to display two charts in two container at a time by calling the same function modules two times first time for bar chart second time for pie chart by changing the  parameter 
presentation_type      = 1 for bar chart
presentation_type      = 31 for pie chart.
please help me in this regard asap.
Thanks,
K.Rajesh.

Hi..
Instead of using the FMs .. you should use the Object oriented approach for the same.
Brief steps:
You should have 2 control areas and 2 containers.
Define different instances of 2 controls and attach them to the 2 containers.
Call individual methods to display the controls in PBO.
This should show both at a time. It is really simple.
As an example you can go to SE38. From the (sap) menu go to Environment -> Examples -> Control Examples.
Here you will see lot of examples.
Regards,
Varun.

Similar Messages

  • Crating bar graphs and pie charts

    hi every body
    in my application there is a need of bar graphs and pie charts can any body help me how to draw them

    try http://www.jfree.org/jfreechart/

  • Bar Chart and Pie Chart

    Hi!
    In My application i want to create few bar and pie chart.
    If is there any code for generating bar and pie chart,
    pl send me.
    If third party software is available tell me the details of it.

    Sure, this functionality would be nice to have right
    out of the box, but when you think about it: should
    Sun be distributing a reporting SDK and promoting bad
    practices anyhow? Implementing your reporting in
    disparate and distributed manners is just plain messy
    and definitely translates to a bad practice. Turning
    to a centralized reporting mechanism, driven by a
    reporting server that can handle the needs for 80% of
    your requirements is a helluva lot more thoughtful and
    mindful than implementing separate mini reporting
    engines encapsulated within each and every application
    that you deploy.Elegantly stated! On a practical point, my company built an Enterprised based reporting solution on top of Java technology within the windows environment (please be kind). Specifically we used Java, ASP and Javascript (no VBScript), and delivered the information using the Microsoft IE 4 and 5.
    However, since Microsoft chose to elminate Java from it's current browser (IE6), we have to throw two years of coding away. We are now in the process of moving backward (technically speaking) to a desktop reporting model using Java (no browser technology) that accesses an Enterprise database, or embedded Java database. None of our customers are using Netscape, so that was never an option. Microsoft's and Sun's inablity to cooperate almost decimated our company's product line (and it still may).
    So I agree with you that an Enterprise server based reporting solution is the best architecture, and yet here I am running away from it after a two year struggle with competing standards. Sometimes the best solution loses for reasons that are simply not technical in nature.

  • Bar and Pie chart  display with values

    Hi All...
    I want implement the my swing application Bar and Pie chart functionality with vales, If both are disply same veues.
    Thanx to Advance
    Arjun

    www.jfree.org

  • Plot line, bar and pie chart

    Anyone can let me know where can i learn or tutorial on how to plot line, bar and pie chart by using java2D... (no third-party software)....
    thanks in advance.

    Here's a pie chart app I made for an earlier question:
    import java.awt.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class PieChart {
      public static void main(String[] args) {
        int[] data = {
          18, 95, 102, 87
        PieCharter pie = new PieCharter();
        pie.enterData(data);
        JFrame f = new JFrame("Pie Chart");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(pie);
        f.setSize(400,300);
        f.setLocation(300,300);
        f.setVisible(true);
    class PieCharter extends JPanel {
      int[] data, percents;
      int dataTotal;
      final int
        PAD = 25,
        R_PAD = 5;
      public PieCharter() {
        setBackground(Color.white);
      public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        Font font = new Font("lucida sans unicode", Font.PLAIN, 16);
        g2.setFont(font);
        FontRenderContext frc = g2.getFontRenderContext();
        int width = getWidth();
        int height = getHeight();
        int cx = width/2;
        int cy = height/2;
        int dia = (int)Math.min(width, height) - 2*PAD;
        g2.draw(new Ellipse2D.Double((width - dia)/2, (height - dia)/2, dia, dia));
        // draw zero datum
        double radians = 0;
        int x = cx + (int)((dia/2) * Math.cos(radians));
        int y = cy - (int)((dia/2) * Math.sin(radians));
        g2.draw(new Line2D.Double(cx, cy, x, y));
        String s;
        int dataWidth, dataHeight, deltaR, rXInc, rYInc;
        for(int i = 0; i < data.length; i++) {
          radians += 2*Math.PI * data/dataTotal;
    x = cx + (int)((dia/2) * Math.cos(radians));
    y = cy - (int)((dia/2) * Math.sin(radians));
    g2.draw(new Line2D.Double(cx, cy, x, y));
    s = String.valueOf(percents[i]) + "%";
    dataWidth = (int)font.getStringBounds(s, frc).getWidth();
    dataHeight = (int)font.getLineMetrics(s, frc).getAscent();
    deltaR = (int)Math.sqrt(dataWidth*dataWidth + dataHeight*dataHeight)/2 + R_PAD;
    rXInc = (int)(deltaR * Math.cos(radians));
    rYInc = (int)(deltaR * Math.sin(radians));
    x += rXInc;
    y -= rYInc;
    x -= dataWidth/2;
    y += dataHeight/2;
    g2.drawString(s, x, y);
    s = String.valueOf(data[i]);
    dataWidth = (int)font.getStringBounds(s, frc).getWidth();
    dataHeight = (int)font.getLineMetrics(s, frc).getAscent();
    x = cx + (int)((dia/4) * Math.cos(radians - 2*Math.PI * data[i]/(2*dataTotal)));
    y = cy - (int)((dia/4) * Math.sin(radians - 2*Math.PI * data[i]/(2*dataTotal)));
    x -= dataWidth/2;
    y += dataHeight/2;
    g2.drawString(s, x, y);
    private void prepareData() {
    for(int i = 0; i < data.length; i++)
    dataTotal += data[i];
    percents = new int[data.length];
    int dataPlus = 0;
    for(int i = 0; i < data.length; i++) {
    dataPlus += data[i];
    percents[i] = Math.round(100 * dataPlus/dataTotal);
    public void enterData(int[] data) {
    this.data = data;
    prepareData();
    repaint();

  • Code regarding Pie Chart, Bar Chart and Line Chart

    Anybody having code for Pie chart, Bar chart and Line chart.......?

    You may try jfreechart, jgraph,etc
    here is the link for more java graphics software : http://www.kidslovepc.com/graphic-design/graphic-design-softwares.php

  • Copying Graphs and Pie Charts generated in Analysis View to Email item using Excel VBA Macro Code

    Hi
    I am currently working on an exce VBA macro code that would help me take snapshots of the Graphs and Pie charts generated in QC for a particular application and copy the same to an email item using excel VBA macro code.
    I was able to write the code to create an email item. But I have no clue of how i can take snapshot of the graphs in Analysis View using excel VBA
    Any help would be highly appreciated.
    Thanks in Advance
    Regards
    Amit

    useramit,
    You are in the consumer end products forum.  You will also want to ask your question over at the Enterprise Business Community.
    Click the plus sign (+) next to Discussion Boards to drop down all the options for servers, networking and any other professionally related problems.
    http://h30499.www3.hp.com/

  • Bar chart and Line chart in a single chart??

    Hello,
    Was wondering if there is any way to create a bar chart and line chart in a single Flash or SVG chart? If not, are there any plans to introduce such a chart type in the future releases?
    Regards,
    Dev

    Dev,
    I don't think you can do that using standard Flash or SVG. However, you can do this
    using my XML Chart Package
    http://htmldb.oracle.com/pls/otn/f?p=31517:58
    and the instructions given on
    http://www.maani.us/xml_charts/index.php?menu=Gallery&submenu=Composite
    You can modify the package to do that for you.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • HT1349 WHEN I TURN MY IPHONE 3S ON IT ASKS ME TO CONNECT TO ITUNES AND RESTORE. I HAVE DONE THIS 10 TIMES AND STILL GET THE SAME SCREEN. CAN ANYONE PLEASE HELP??

    WHEN I TURN MY IPHONE 3S ON IT ASKS ME TO CONNECT TO ITUNES AND RESTORE. I HAVE DONE THIS 10 TIMES AND STILL GET THE SAME SCREEN. CAN ANYONE PLEASE HELP??

    Has your phone been jailbroken?  If so, you will likely never get it to work again.
    You can try placing your phone in DFU mode (search google) and restoring.

  • Raising a Message and staying at the same screen

    Hi,
    i had searched SDN before posting this thread
    I'm working on a Enhancement for CO12.
    The issue is that after raising a message i have to stay at the same screen.
    I raised the error message like below, but after this message the whole screen is getting plain.
    MESSAGE 'Quantite confirmee ' TYPE 'E'
    I change my message type as STATUS, this message is display but the transaction doing its work.
    MESSAGE 'Quantite confirmee ' TYPE 'S'
    Can you please tell me how to get rid of this issue?
    Thanks
    Always LEarner

    Thanks Guys!!
    I tested with all options provided by you people. When i write CALL SCREEN 1000 it is going to dump. I think its unable to identify
    the screen.
    When i tried to raise a error message like below, message is getting triggered but its not stopping here because the message is of type 'S'
    MESSAGE 'Quantite confirmee incomplete' TYPE 'S' DISPLAY LIKE 'E'.
    When i tried to raise a error message like below, message is getting triggered but its making the whole screen plain
    MESSAGE 'Quantite confirmee incomplete' TYPE 'E' DISPLAY LIKE 'S'
    If i'm using 'EXIT' after the message statement , its coming out of the include
    And, I have read the documentation of CONFPP05.
    The documentation says :-
    In this customer enhancement it is strictly FORBIDDEN to send error  
    messages or other messages because otherwise there is the danger that
    data will be inconsistent. SAP takes no responsibility for this !!!
    So, is there any way to raise an error message and stay on the same screen??
    Thanks & REgards
    Always Learner!!

  • Updated my Iphone 4s to the new IOS and now i can't restart or recover it. as soon as it starts recoring, the status bar fades and the connect to itunes screen appears. WHAT THE HEY!? I'm SICK of UPDATE ISSUES!!!!!!

    Updated my Iphone 4s to the new IOS and now i can't restart or recover it. as soon as it starts recoring, the status bar fades and the connect to itunes screen appears. WHAT THE HEY!? I'm SICK of UPDATE ISSUES!!!!!!

    Yes, yes, yes... I've gone through all the common sense trouble shoots. Would't be here asking questions if that answers existed on the net. Sorry if I sound a bit edgey, but I've had nothing but issues with every update since IOS 7. Clearly there's nothing that can be done about this. and this is the final nail in the coffin to try to make me buy an Iphone 5.

  • How can I combine a lot of text and images on the same screen?

    How can I combine a lot of text and images on the same screen?  I can get a couple of words on the screen with a graphic but not 10 lines.  I need 10 lines on the page with the image. 

    Priscilla,
    I routinely combine 10 lines of 36 pt bible or lecture text to a suitable background using Boris Title 3D.
    Many times the text is too long to fit the screen using Boris, so I devide it into 2 or more parts with no transition between sections.
    In my case, the text is on the screen as the speaker quotes them.
    David

  • My ipods screen says connect to itunes, so i connect it and nothing happens the same screen stays on, it will not get off that screen. I know my cord works because when i plug it in it says charging. What do i do?

    My ipods screen says connect to itunes, so i connect it and nothing happens the same screen stays on, it will not get off that screen. I know my cord works because when i plug it in it says charging. What do i do?

    Restore your ipod

  • HT1645 whether i use a DL DVD or just a DVD R, it tells me there was an error during multiplexing.  I have tried changing every setting, best performance, professional quality, etc. and still get the same error message every time i try to burn to dvd.

    whether i use a DL DVD or just a DVD R, it tells me there was an error during multiplexing.  I have tried changing every setting, best performance, professional quality, etc. and still get the same error message every time i try to burn to dvd.

    Welcome to the forums.
    Looks like that error message does refer to encoding (see http://support.apple.com/kb/HT1645) but a problem could be that your video has to be reloaded into iDVD if you started the encoding process and then switched settings.  You could start a new iDVD project, or try deleting encoded assets.
    Let's start from the beginning -- what length of video are you trying to fit on the DVD? (this will indicate what encoding options you have).  Double layer DVDs can be finicky and are used for video more than 2 hrs long.
    Use good quality media -- Verbatim is often recommended around here, and I've used Sony DVD-R with good results.
    For a detailed treatise, see:  https://discussions.apple.com/thread/3926901?tstart=0
    John

  • ActiveX and pie chart problem

    I am trying to create a bar of pie chart in Excel 2003. I am able to insert my data and create the chart, but I need to set the "SplitValue" to 6. I was able to find the property for doing this but I get an error when I run the vi (see attached).  Any thoughts?
    Solved!
    Go to Solution.
    Attachments:
    ActiveX Error.PNG ‏45 KB

    I think your problem is that you don't have "Index" wired for the ChartGroups property. Thus, it may be returning a collection of chart groups, but you are typecasting it to a single chart group.

Maybe you are looking for

  • PURCHASE ORDER HISTORY DATA

    Hi, In which table the Purchase Order History data or Purchase Order Document Flow Data is being stored. (Just the like the Sales Order Document Flow Data is being stored in table VBFA). Regards, Vishal

  • Email remittances/Spool saying no data available after payment run

    Hi everyone.. Please suggest a solution for me, why nothing is appearing in SOST/SCOT and SM37... Steps: 1)     Entered email address in vendor master record. 2)     In vendor master record on the bottom made the standard communication method: Email.

  • Number of Visible rows on the "Leave History" Table

    Dear SDN, please, how can I set the height of the "Leave History" table on the PZ54 ESS transaction ? The user is requesting more visible rows, but the table only displays 2 rows, and I can't find on the SDN how I can set this table property. --> Thi

  • How would you push login credentials to a landing page?

    I am looking into a solution for pushing a user's login credentials to a landing page with options for different sites to go to. Basically the user will sign in and then be redirected to a landing page with three buttons that the user will choose whi

  • Can Someone help with this crash report - Any Ideas?

    Hello, Since OS X 10.4.6 Jedi Knight II Multiplayer crashes. It was perfectly fine before 10.4.6, and I can get it to run under classic. The Single-player app also works perfectly. The multi-player game will crash when trying to load certain maps. It