Related to graph

hi every body, i am new to java and i am doing swings application in which i hv to use graph, ie i hv to display the graph with two comparisions eg (india vs srilanka)etc...please can anyone guide me the link or some explanation..abt graph..or send sample code ... i hv downloaded the code from net but unable to understand..... thanks in advance..

JFreeChart

Similar Messages

  • Need help related to Graphs/Cha​rts in Labview

    Hi,
    I need some info related to Graphs/Charts in Labview.
    Where I am facing problem is:
    User has to select from a ring control , type of graph/chart he wants i.e.,XY Graph,Waveform Graph,Waveform Chart...
    Based on his selection I need to create that particular graph dynamically at run-time and plot the data.
    Please suggest how I can do this....
    Regards,
    Harika

    HI Harika,
    There is property to hide the pages but you dont need that, you just need to display one page a time.
    Just right click on tab control and in shortcut ment disable Visible Item >Tabs, this will hide the Page selection. If you want you can make the color of tab as transperent (It looks like you are not using any tab control)
    Go to the terminal on the tab control, you can write the tab page number you want to display.
    Regards
    Santosh 
    Message Edited by SanRac on 07-28-2009 01:57 AM

  • Graph Capabilities in XML Publisher

    Just started evaluating XML Publisher as a possibility for reporting multiple Balanced Scorecard KPIs from E-Business Suite onto one report, as that functionality is NOT provided by Oracle.
    I presume the idea of XML Publisher is to make development of Reports faster and easier, with less technical knowledge required than perhaps using something like Oracle Reports
    To be honest with an initial look I have found it to be quite disappointing, especially in respect to graphing.
    I wanted to create a graph where I could display Multiple Series of Data on the one Bar Graph i.e. Actual, Budget, Forecast, by Period
    The "Wizard" in Release 5.6.0 only allows me to select the "sum" of a single "Measure"
    I have since read further through B13817-05 XML Publisher User Guide, and found you can go to Format, Picture and the Web tab and alter the code in there to change the graph.
    So I have managed to do that by manually adding additional <RowData> items
    However I don't feel that confident in recommending we attempt to use XML Publisher yet for "advanced" reporting, as it seems to have as many peculiarities, issues as Reports Developer, and probably requires a similar level of Expertise/Experience
    I am sure for a basic report, it is quite easy to achieve something quickly and easily, but generally nowadays requirements are not simple
    The resources I have found that seem to relate to graphs are;
    http://www.oracle.com/technology/products/reports/htdocs/faq/graph_faq_with_style.html
    http://www.oracle.com/technology/products/reports/htdocs/getstart/whitepapers/graphdtd/graph_dtd_technote_2.html
    Is there any other resources out there that would be helpful ?
    Jeremy

    Thanks for your reply
    I will check out those possibilities if I have time, as mentioned we are not really developers and were looking for the true benefits marketed for using XML Publisher of reports being "designed using Microsoft Word or Adobe Acrobat "
    Let hope the graphing and other functionality makes it into a release soon

  • Illustrator files containing graphs corrupt and will not open after saving

    I have created a series of graphs in illustrator and after saving when I try to reopen them, I get the following error message:
    Can't open the illustration. The illustration contains an illegal operand. Offending operator: 1#INF
    This happens whatever format the file is saved in.
    I am using CC.
    Any ideas why and how to prevent it happening in the future?

    vnqaa,
    If you are saving elsewhere than your own harddisk, that may be the cause. Otherwise, something else has obviously corrupted the files, possibly related to graphs.
    One thing often tried first is to create a new document and File>Place the corrupted one to see how much may be rescued that way.
    Here is a website where you can see whether it can rescue the file, and if it can, you may pay for a subscription to have it done,
    http://www.recoverytoolbox.com/buy_illustrator.html
    and another similar website,
    http://markzware.com/adobe-software/fix-illustrator-file-unknown-error -occurred-pdf2dtp-file-recovery/
    As far as I remember, the former is for Win and the latter for Mac.
    Here are a few pages about struggling with it yourself:
    http://daxxter.wordpress.com/2009/04/16/how-to-recover-a-corrupted-ill ustrator-ai-file/
    http://helpx.adobe.com/illustrator/kb/troubleshoot-damaged-illustrator -files.html
    http://kb2.adobe.com/cps/500/cpsid_50032.html
    http://kb2.adobe.com/cps/500/cpsid_50031.html

  • How to remove the background grayed color in oracle 11g (graph) reports

    Hello,
    We have an issue with oracle 11g reports. we migrated the reports from 10g to 11g version. for graphical oriented reports by default it displaying grayed backgound color. but i want to change it to set as white background please help me on this.
    Edited by: user4661358 on Sep 12, 2010 11:00 PM

    There is an excellent support note with several known issues in 11g related to graphs.
    Reference
         Known Issues Using Graph in FMW 11g (Doc ID 1328155.1)
    Regards, RZ

  • Menu contextuel sur un graphe 2D

    Je souhaiterai utiliser un menu contextuel ( Bt droit de la souris) au dessus d'un graphe 2D pour changer de mode de fonctionnement( zoom, curseurs,déplacement)
    dans le fichier joint je détecte l'event Mouse down j'affiche un menu contextuel ( x, y n'ont pas les bonnes valeurs ???) chaque item de ce menu change le mode par appel à set trackmode. Probléme apres cet appel la fonction zoom ne fonctionne plus .
    Le graphe semble ne plus generer d'events.
    merci pour votre attention.
    Attachments:
    SimpleGraph.zip ‏260 KB

    Bonjour,
    les coordonnées x et y sont relatives au graphe. Vous pouvez modifier votre code comme ci dessous pour afficher votre popup à la position du curseur de souris.
    void CSimpleGraphDlg:nMouseDownCwgraph(short Button, short Shift, long x, long y) //jlr
    // test du mode choisi.
    CWnd *p =GetDlgItem(IDC_TRACKMODE);
    int i= m_graph.GetTrackMode();
    CString tm;
    tm.Format("Track mode %d",i);
    p->SetWindowText(tm);
    //Bt droit
    if(Button==2)
    CMenu menu;
    menu.LoadMenu(IDR_MENU1);
    CMenu * pmnu = menu.GetSubMenu(0);
    // si l'on appelle le menu contextuel on constate qu'il est positionné
    // en dehors du graphe, en outre il menu bloque tous les
    // events du graphe.
    RECT graph_rect;
    m_graph.GetWindowRect(&graph_rect);
    int popup_x = x + graph_rect.left;
    int popup_y = y + graph_rect.top;
    pmnu->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, popup_x, popup_y, this);
    pmnu->DestroyMenu();
    Cordialement
    Salissou ISSA
    Ingénieur d'applications
    National Instruments France

  • Graphs Problem

    Hi there all,
    I have one problem related to graph. I haven't found a particular forum dedicated to graphs hence posting it here.
    I have a column graph with reference line.I would like to know how can one put the value for the reference line dynamically depending upon the some value in the table.
    Thanking you in advance.
    Regards,
    Ajeet

    Hi Ajeet,
    I would recommend that you go through the Graphing FAQ available on Reports OTN page:
    http://www.oracle.com/technology/products/reports/index.html
    One of the Q's in the FAQ deals with "how to change certain graph characteristics at runtime". Though it gives you an example of changing Y-axis scale dynamically, you could apply the same concept to reference line values.
    By the way, I am assuming that you are using graphs in Oracle Reports. Otherwise, this answer (and this Forum) may not be relevant for you. In that case, you need to post your Q on the BI Beans Forum:
    BI Beans
    Navneet.

  • How to get source code of ADF demo page.

    I have used oracle ADF demo site for demo work related to graphs.
    I want to download the source code of this demo. I mean jspx file, backing bean and style classes.
    Is there any way I can download this source code?I believe there is no sense to use it without downloading it's code.
    I want to download "Area graph Animation" from below link:
    http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/graph/animation.jspx?_afrRedirect=2611981845492287
    Please help!
    Thanks,
    Jaykishan

    This does NOT have .JWS file as
    The demo WAR is a JDeveloper Project packaged into a WAR file.
    So creating a dummy application or open an existing application.
    Select 'File' ----> 'New' --> 'Projects' and select Project from WAR.
    Thanks,
    Navaneeth

  • Event Handling between JPanels

    Hi everyone,
    I'm trying a three-fold assignment on java, which relates to graphs and finding strongly connected components.
    In the first part, the user can create his own graph and the program should find all SCC and display them.
    In the second part, the program creates random graphs and then finds all SCC and displays them.
    In the third part, some statistical data is to be displayed.
    So what I have done so far is that I have created a JFrame on which I have added 3 JPanels, each for every part of the assignment.
    Changing between the JPanels is done by a JTabbedPane.
    My problem lies on the second part. I've created a class called RandomGraphPanel, which extends JPanel. Then I've created two sub-JPanels,
    called RandomGraphAreaPanel, where the graph should be displayed and RandomGraphDataPanel, where the user can choose some parameters on which the random graph is based. I don't know how I can paint the graph on the first sub-JPanel, after pressing a button on the second sub-JPanel.
    I will include some code from my classes:
    public class RandomGraphPanel extends JPanel
         private JPanel graphArea;
         private RandomGraphDataPanel data;
         private RandomGraphAreaPanel area;
         public RandomGraphPanel()
              super();
              setLayout(new BorderLayout(5,5));
              data = new RandomGraphDataPanel();
              area = new RandomGraphAreaPanel();
              add(data, BorderLayout.SOUTH);
              add(area, BorderLayout.CENTER);          
         }//RandomGraphPanel constructor
    }//RandomGraphPanel class
    public class RandomGraphDataPanel extends JPanel
         public RandomGraphDataPanel()
              super();
              //part where RandomGraphDataPanel is filled with 2 JSliders and 1 JButton
         }//RandomGraphDataPanel constructor
         private class ButtonHandler implements ActionListener
              public void actionPerformed(ActionEvent event)
                   //code that is executed when the button is pressed               
              }//actionPerformed
         }//ButtonHandler private class
    }//RandomGraphDataPanel classAny help will be appreciated.
    Thanks,
    philimonas

    Probably the best way would be to somehow implement the MVC pattern here. Another way would be to move the button handling code out of the RandomGraphDataPanel class and into the RandomGraphPanel class. You could then pass the ActionListener into the RandomGraphDataPanel object by perhaps a constructor parameter, or by a separate addActionListener method that you have created. Something like so:
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JPanel;
    public class RandomGraphPanel extends JPanel
        private JPanel graphArea;
        private RandomGraphDataPanel data;
        private RandomGraphAreaPanel area;
        public RandomGraphPanel()
            super();
            setLayout(new BorderLayout(5, 5));
            // *** passing ActionListener to the data class via constructor parameter
            data = new RandomGraphDataPanel(new ButtonHandler());
            area = new RandomGraphAreaPanel();
            add(data, BorderLayout.SOUTH);
            add(area, BorderLayout.CENTER);    
        // *** move this code into this class
        private class ButtonHandler implements ActionListener
            public void actionPerformed(ActionEvent event)
                area.showGraph();  // or whatever is needed to show graph       
    }and
    //import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    public class RandomGraphDataPanel extends JPanel
        public RandomGraphDataPanel(ActionListener buttonHandler)
            super();
            JButton someButton = new JButton("Show Graph");
            someButton.addActionListener(buttonHandler);
        private class ButtonHandler implements ActionListener
            public void actionPerformed(ActionEvent event)
                //code that is executed when the button is pressed         
    }

  • Multiple drop menus in formulas

    Hi there, i am using my mac os x 10.6.8 with Numbers 09 and am very new to creating formulas. I am using a template and am making my own alterations. As you can see in the pic attached i have one spreadsheet (transaction) that all information is entered and from there i want that information to be directed to the corresponding "account" gaph. Eg each graph is a seperate account, from the transaction spreadsheet i have drop down menus set up for each account and for each category. Am I able to have both account and category drop menu in the formula for the relative corresponding graph? Is there a way i can achieve this? Thank you for your assitance. L

    Lindo,
    you want to sum amounts when they meet two conditions:
    1) The account matches the table you are summing in
    2) the category matches
    to do this you use the SUMIFS() function which allows more than one condition to sum a particular row.
    I would suggest adding a new header row to each summary table and in cell A1 store the account type (AMX, Master Card, Goal Saver, etc).
    so the current formula:
    B2=sumif($Category, A2, Transactions :: Amount)
    should change to (move down a row because we added one more header row):
    B3=sumifs(Transactions :: Amount, Transactions :: Account, $A$1, Transactions :: Category, A3)
    Duplicate this table and change the account in cell A1

  • Xy graph in GUI. Show string data related to a X,Y point

    It is possible to show string data, while hovering the mouse or clicking a cursor, attached/related to a X,Y point in a XY graph??
    Kind regards

    I assume you want to let the x-y-value pair hover over the graph at mouse position.Perhaps this will help you:
    http://forums.ni.com/t5/LabVIEW/Text-overlay-annotation-onto-an-intensity-graph/m-p/883438/highlight...
    Another option might be just to use the cursor functionalities of XY graphs, although they don't hover at mouse position.
    Other than that I had a similar request on Image Displays with IMAQ (Vision Development Module) where it turned out that using a simple string control from the classic palette that you move around according to mouse position is an efficient way to let information hover wherever you want. Check it out:
    http://forums.ni.com/t5/LabVIEW/Why-do-overlays-take-so-much-longer-on-single-precision/m-p/2376338#...

  • Problème graphe en temps relatif

    Bonjour,
    J'ai crée un VI d'acquisition de tension avec un port USB NI9219 qui mesure différentes tension d'entrée à une fréquence élevée(ex : 100 Hz). De plus mon VI enregistre les mesures que lorsque la tension mesurée change de 0,01v. Le VI trace également les courbes de tension dans un graphe déroulant qui comporte tous les points enregistrés (et seulement ceux la) depuis le lancement de l'application.
    C'est sur ce point que je n'arrive pas à avoir un graphe déroulant avec plusieurs courbes (4 maximum) avec une échelle des x en temps relatif. C'est à dire de t=0 (ex : minutes) jusqu'a t=fin du VI
    Lorsque je met les x en temps relatif il ne me met pas de temps mais des valeurs abérantes. De plus il n'incrémente pas du temps éffectué entre 2 mesures, il incrémente le temps de 1.
    (ex : on a t=5min entre 2 mesure enregistrées mais la courbe incréménte le temps de 1 sur la valeur abérante).
    Avez vous des solutions pour mon problème. Merci.
    Cordialement.
    Solved!
    Go to Solution.

    Cette valeur correspond à l'heure de la mesure, 952500:36:41 correspondant à 14h36 et 41s.
    Cela permet d'horodater les points plus précisément.
    Si vous souhaitez recréer votre échelle de temps en X, il faudra modifier le T0 de votre courbe.
    Pour cela vous allez devoir utiliser la fonction Construire une waveform permettant d’insérer votre courbe et aussi de modifier le t0, on insère cette fonction dans une boucle For afin de traiter les 4 courbes.
    Au départ du VI on initialise un registre à décalage à 0 afin que nos premiers points commencent à 0, puis on devra multiplier l’horloge d’échantillonnage par le nombre de point afin de définir le t0 des tours de boucles suivants.
    Cela devrait résoudre votre probléme.
    Cordialement
    Christophe S.
    FSE East of France І Certified LabVIEW Associate Developer І National Instruments France

  • Relative Time Scale for X-Axis when creating a Line Graph in CS3?

    Is there a way to get the APPROPRIATE RELATIVE scale for the X-Axis (Category) when you're using dates?
    Example:
    If this is my data set:
                        Group A          Group B
    01/03/99                1                5
    01/04/99                11                3
    01/05/99                6                12
    11/27/07                63                54
    If I plot this in Xcel, by default, each date (x-axis) will be spaced the same distance apart. However, there is a checkbox to "time-scale" the X-Axis which will place the dates relative to one another. In other words, if we're talking about a bar graph, the first three bars would be close together on the left side of the chart, and the 4th bar would be waaaaaay on the right side of the graph.
    So, below, if 'x' is a bar, I keep getting this in CS3:
    x     x     x     x
    I want to get this:
    x x x             x
    Get it?

    Is there a way to get the APPROPRIATE RELATIVE scale for the X-Axis (Category) when you're using dates?
    Example:
    If this is my data set:
                        Group A          Group B
    01/03/99                1                5
    01/04/99                11                3
    01/05/99                6                12
    11/27/07                63                54
    If I plot this in Xcel, by default, each date (x-axis) will be spaced the same distance apart. However, there is a checkbox to "time-scale" the X-Axis which will place the dates relative to one another. In other words, if we're talking about a bar graph, the first three bars would be close together on the left side of the chart, and the 4th bar would be waaaaaay on the right side of the graph.
    So, below, if 'x' is a bar, I keep getting this in CS3:
    x     x     x     x
    I want to get this:
    x x x             x
    Get it?

  • Store a graph in a relational DB

    Greeting Gurus
    How you would recommend to store a graph (vertices and links ) into a relational database ??
    Or the way relational database organize data might not be the optimal to store a graph ??
    And hence its operation such as sales man problem ??
    Thanks so much

    Hi,
    vxwo0owxv wrote:
    Thanks for the input. This is a way to get this done
    I am curious about if it is possible to define a function when creating a unqiue index such that
    if mod(a,b) = 1 then a & b are the same
    e.g mod(5,4) = mod(7,3) = 1 so if I have (5,4) in my table I do not want (7,3)
    so basically if it is possible to define a function and if the function in the data element return some pre-defined value then they would be considered the same.
    maybe it is not the design intention of a relational database as such ??
    This is a separate problem, so it would be better if you started a separate thread for it.  (You might be planning to constrain a graph table this way, but it's a separate problem, even if it's the same table.)
    Yes, you can have function-based indexes, and they can be unique.
    It's unclear what you're saying.
    If MOD (a, b) = 1, then a and b are definitely NOT the same.  Only if MOD (a, b) = 0 can  a and b be the same, and even then, they are not necessarily the same.  That is, if a = b, then MOD (a, b) must be 0, but if MOD (a, b) = 0, it may be the case that a != b.  MOD (4, 4) = 0, but MOD (12, 4) = 0 also.
    If you have a table and an index like this:
    CREATE TABLE table_x
    (   a    NUMBER (6, 0)
    ,   b    NUMBER (6, 0)
    CREATE UNIQUE INDEX  x_a_mod_b ON table_x (MOD (a, b));
    then you can INSERT either of these rows, but not both of them.
    INSERT INTO  table_x (a, b) VALUES (5, 4);
    INSERT INTO  table_x (a, b) VALUES (7, 3);
    If row (5,4) is already in the table, and you try to INSERT (7, 3), then you'll get an error like this:
    INSERT INTO  table_x (a, b) VALUES (7, 3)
    ERROR at line 1:
    ORA-00001: unique constraint (FUBAR.X_A_MOD_B) violated

  • Relate mouse click position to points on graphs

    I am working with labview 7, on windows XP. I am trying to relate between a mouse click on a waveform chart to a point on the chart. All I managed to do so far is relate with a cursor, but the cursor has to be dragged and I want the user just to click on the graph. Is that possible?

    Hello
    Attached is a labview example lv 7.0 about how to map cursor coordinates to graph units.
    Perhaps Chilly Charly can post his vis en 7.0
    Greetings
    Alipio
    "Qod natura non dat, Salmantica non praestat"
    Attachments:
    uievents.llb ‏90 KB

Maybe you are looking for