Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2011
    Location
    India,Tamil Nadu
    Posts
    32
    Rep Power
    0

    Smile How to draw graph by using netbeans

    Hi
    May i know how to draw graph by using netbeans.
    I have given x and y values.

    Rule
    X-Values
    Java Code:
    String Rule[]={"FUP1- N","FUP1-Y","MUP1-N","MUP1-Y","FUP2-N","FUP2-Y","MUP2-N","MUP2-Y","FUP3-N","FUP3-Y","MUP3-N","MUP3-Y","FUP4-N","FUP4-Y","MUP4-N","MUP4-Y","FUP5-N","FUP5-Y","MUP5-N","MUP5-Y"};
    Lift
    Y-values
    Java Code:
     for(j=20,k=0,countnum=1;j<=39&&k<=19&&countnum<=20;j++,k++,countnum++)
                            {
    			rs[j]=st1.executeQuery(sql[j]);
                            System.out.println("Inside for loop  "+j);
    				{
    
    					if (rs[j].next())
    					{
    					        number[k] = rs[j].getInt(1);
                                                    float x,y,z,lift,x1,x2,y1;
                                                   
                                                    x1=number[k];
                                                    x2=Supportnum;
                                                         x=x1/x2;
                                                    y1=num[k];
                                                        y=y1/x2;
                                                    z=(f1[k]/x2);
                                                  [B][I][U][COLOR="blue"]  lift=(x/(y*z));[/COLOR][/U][/I][/B]                                                data[0]=countnum;
                                                    data[1]=Rule[k];
                                                    data[2]=number[k]+"/"+Supportnum;
    						data[3]=number[k]+"/"+num[k];
                                                    data[4]=lift;
    					}
                                            d.addRow(data);
    					rs[j].close();
    
            			}

    With Regards
    Nandhini.
    Last edited by nandhinianand; 08-05-2011 at 08:08 AM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default

    Search the net for JFreeChart.

    db

    edit

    You have already been advised to use code tags, and on an earlier thread a moderator had added them for you. So why did you use quote tags instead of code tags here?
    Last edited by DarrylBurke; 08-05-2011 at 07:55 AM.

  3. #3
    Join Date
    Jul 2011
    Location
    India,Tamil Nadu
    Posts
    32
    Rep Power
    0

    Default

    Hi DarryBurke

    Thank you for giving the search key.

    With Regards,
    Nandhini.

  4. #4
    Join Date
    Jul 2011
    Location
    India,Tamil Nadu
    Posts
    32
    Rep Power
    0

Similar Threads

  1. Replies: 13
    Last Post: 02-01-2011, 01:34 AM
  2. Replies: 7
    Last Post: 11-16-2009, 01:22 AM
  3. how to draw x-y graph in Jpanel.--not in APPLET.
    By vincent2001@gmail.com in forum New To Java
    Replies: 2
    Last Post: 08-24-2008, 05:01 AM
  4. How to draw a bar graph using Jfree
    By sacr83 in forum Java 2D
    Replies: 0
    Last Post: 04-30-2008, 08:50 AM
  5. How to draw a VERTICAL BAR GRAPH in JAVA
    By sacr83 in forum Java 2D
    Replies: 3
    Last Post: 04-30-2008, 08:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •