Drawing editable charts

Hi,
I have been working on a project management tool and I need to draw some charts like gantt and pert. I want them to be editable like when the users drags a task it should extend its end date and etc. What's the best approach I can take? Do you know of some good libs that I can employ?
A second question is what new features would you want in a project management tool? Our design has both web and swing parts and we are planning to use RMI and struts.

nobody knows? :((

Similar Messages

  • Edit Chart of Account

    Hi Experts,
    I want to shift one GL account from assets to liabilities.
    The account which I want to transfer is a control accunt & also used in GL account determination, during implementation this account was wrongly placed in liabilities however this has to be placed in asstes drawer.
    when I try to relocate the account there is a message as follows
    Cannot transfer reconc. account to another group  [Message 750-21]
    So, need your help how to resolve this issue.
    Regards,
    Waqas

    Hai!
    This is the solution proposed by SAP Support...
    The issue is reproducible in a India demo DB for both versions 2005B PL45 and 2007B PL11.
    Currently this is the current system behaviour for both versions as the account Goods Received not invoice clearing (GRNI) has been defined under GL Account determination-stock tab and also WH account ing tab .
    Nevertheless after further investigation we managed to move the account to the expenditure drawer. Find below a workaround which allow the system move the account to the expediture drawer.
    1.Remove the account 208040 from GL account determination - stock tab and also from any Warehouse definition
    2.Go to Edit Chart of account and select Liabilities and Expenditure drawer.
    3.Set the account 208040 as Level 2 and update
    4.Move the account to expediture account
    Please be aware that this change will have accounting consequences (e.g P&L report...) therefore makes sure customer accountant agree about this change. Please check the attach note 812315.
    Regards,
    Thanga Raj.K

  • How to draw flow chart?

    Anybody knows if Java support drawing flow chart,such as visio and rose software? If Java can do it,please give some examples.
    Thanks

    I know there are libraries out there for editing Word and Excell documents in java, but I'm not sure about Visio. Have you tried google?

  • Export SQL Server report chart to excel as editable chart

    Hi,
    When I export the report in excel format the chart is displayed as picture. I want it to be displayed as editable chart.
    Does Office Writer work in this situation and did anyone use Office Writer to accomplish same type of problem.
    Is there any other method or product we can use instead of the office writer.
    Thanks.

    Hi Brad_user,
    Just as you said, the chart displays as a static image after exporting to excel, and it cannot be edit. The feature that a chart can be editable after exporting to Excel is not supported in current release of Reporting Services. One workaround for you is
    create a chart base on the same data in the excel level. Notice that there are many features supported on one side but not the other.
    Alternatively, if you have any concern about this, please submit a feedback at
    https://connect.microsoft.com/SQLServer/Feedback. Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software
    and services the best that they can be, and you can learn about and contribute to exciting projects.
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Edit Chart error in web application designer

    Hello,
    Whenever I try to edit a chart in de WAD the edit popup window is empty (no edit fields). Does anyone know how to solve this error. BW is running on WAS 6.20 and I am running SAP GUI 6.40 patch 22.
    Kind regards,
    Raymond Does

    Problem solved!
    My graphics adapter was set to 128% DPI. This caused 2 errors:
    1. The tabs below the template window where "overwritten" by the template window.
    2. The "edit chart" popup window remained blank.
    After setting my graphics adaper to 96 dpi (default) everything worked fine.

  • Drawing pie chart in applet

    Hi,
    The following is an applet I've written as an assignment in school. The applet runs well on appletviewer (here I mean drawing the pie chart). But when I run it on my browser, the pie chart is not drawn. Hope you can help me. Thanks in advance.
    import java.applet.*;import java.text.*;import java.awt.*;import java.awt.event.*;import java.awt.Graphics;public class x2 extends Applet implements ActionListener {               private Button draw,reset;        private TextField thigh,tmedium,tlow,tno;     private Label banner,l1, l2, l3, l4;     double rhigh,rmedium,rlow,rno;     double high, medium, low, no, total, high2=0, medium2=0, low2=0, no2=0,low3, no3;     String something="";          public void paint(Graphics g){     setBackground(Color.white);               if(something=="in"){     try {               rhigh=Double.parseDouble(thigh.getText());     rmedium=Double.parseDouble(tmedium.getText());     rlow=Double.parseDouble(tlow.getText());     rno=Double.parseDouble(tno.getText());     } catch (NumberFormatException nfe) {     }     total=rhigh+rmedium+rlow+rno; high=(rhigh/total)*100; medium=(rmedium/total)*100; low=(rlow/total)*100; no=(rno/total)*100; high2=high*360/100;     medium2=medium*360/100;     low2=low*360/100;     no2=no*360/100;          low3=high2+medium2;     no3=low3+low2;               g.setColor(Color.red);     g.fillArc(100,100,200,200,0,(int)high2);     g.setColor(Color.blue);     g.fillArc(100,100,200,200,(int)high2,(int)medium2);     g.setColor(Color.green);     g.fillArc(100,100,200,200,(int)low3,(int)low2);     g.setColor(Color.pink);     g.fillArc(100,100,200,200,(int)no3,(int)no2);     }     }          public void init(){          draw=new Button("Draw pie chart");     reset=new Button("Reset");     thigh=new TextField("",10);     tmedium=new TextField("",10);     tlow=new TextField("",10);     tno=new TextField("",10);     l1=new Label("High Risk  :$");     l2=new Label("Medium Risk:$");     l3=new Label("Low Risk   :$");     l4=new Label("No Risk    :$");     banner=new Label("Welcome");           add(banner);           add(l1);     add(thigh);          add(l2);     add(tmedium);     add(l3);     add(tlow);     add(l4);     add(tno);                         add(draw);     add(reset);                   draw.setActionCommand("Draw");     draw.addActionListener(this);        reset.setActionCommand("Reset");     reset.addActionListener(this);     }          public void actionPerformed(ActionEvent e){          if(e.getActionCommand() == "Draw") {               something="in";               repaint();                    } else if(e.getActionCommand()== "Reset") {               something="";               thigh.setText("");               tmedium.setText("");               tlow.setText("");               tno.setText("");               repaint();          }     }}

    <code>
    import java.applet.*;
    import java.text.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Graphics;
    public class x2 extends Applet implements ActionListener {
         private Button draw, reset;
         private TextField thigh, tmedium, tlow, tno;
         private Label banner, l1, l2, l3, l4;
         double rhigh,rmedium,rlow,rno;
         double high, medium, low, no, total, high2=0, medium2=0, low2=0, no2=0,low3, no3;
         String something="";
         public void paint(Graphics g) {
              setBackground(Color.white);
              if(something=="in"){
                   try {
                        rhigh=Double.parseDouble(thigh.getText());
                        rmedium=Double.parseDouble(tmedium.getText());
                        rlow=Double.parseDouble(tlow.getText());
                        rno=Double.parseDouble(tno.getText());
                   catch (NumberFormatException nfe) { }
                   total=rhigh+rmedium+rlow+rno; high=(rhigh/total)*100;
                   medium=(rmedium/total)*100;
                   low=(rlow/total)*100;
                   no=(rno/total)*100;
                   high2=high*360/100;
                   medium2=medium*360/100;
                   low2=low*360/100;
                   no2=no*360/100;
                   low3=high2+medium2;
                   no3=low3+low2;
                   g.setColor(Color.red);
                   g.fillArc(100,100,200,200,0,(int)high2);
                   g.setColor(Color.blue);
                   g.fillArc(100,100,200,200,(int)high2,(int)medium2);
                   g.setColor(Color.green);
                   g.fillArc(100,100,200,200,(int)low3,(int)low2);
                   g.setColor(Color.pink);
                   g.fillArc(100,100,200,200,(int)no3,(int)no2);
         public void init(){
              draw=new Button("Draw pie chart");
              reset=new Button("Reset");
              thigh=new TextField("",10);
              tmedium=new TextField("",10);
              tlow=new TextField("",10);
              tno=new TextField("",10);
              l1=new Label("High Risk :$");
              l2=new Label("Medium Risk:$");
              l3=new Label("Low Risk :$");
              l4=new Label("No Risk :$");
              banner=new Label("Welcome");
              add(banner);
              add(l1);
              add(thigh);
              add(l2);
              add(tmedium);
              add(l3);
              add(tlow);
              add(l4);
              add(tno);
              add(draw);
              add(reset);
              draw.setActionCommand("Draw");
              draw.addActionListener(this);
              reset.setActionCommand("Reset");
              reset.addActionListener(this);
         public void actionPerformed(ActionEvent e) {
              if(e.getActionCommand() == "Draw") {
                   something="in";
                   repaint();
              } else if(e.getActionCommand()== "Reset") {
                   something="";
                   thigh.setText("");
                   tmedium.setText("");
                   tlow.setText("");
                   tno.setText("");
                   repaint();
    </code>

  • Is Apple allow core plot framework to draw Pie chart in iPhone application?

    Is Apple allow core plot framework to draw Pie chart in iPhone application?
    http://code.google.com/p/core-plot/wiki/AppsUsingCorePlot

    Wrong forum. Ask in the developer's forum.

  • I wanna draw line chart

    hi, i wanna draw line chart for some analysis of an image.
    how can i do that?? plz help me in that, code would be more
    better.thank u.

    Yes, you can use the code for free and you can include it in your application for free. JFreeChart is and will always be free software.
    What's not free is the JFreeChart Developer Guide (a 300 page Acrobat PDF document) and access to the JFreeChart Priority Support Forum. You have to pay for these, if you want them, the idea being that a well-funded project will progress faster than one that relies solely on volunteers.
    I get some criticism for taking this "commercial" approach, but I am 100% certain that it has made JFreeChart a better product, so I don't care...
    Regards,
    Dave Gilbert
    JFreeChart Project Leader

  • Openoffice spreadsheet draw combination charts  programatically

    hi all,
    we need to develop a project that is an extension in OO so that it could display a mutitype chart we have drawn in Excel.
    Essentially, we have a combination chart consists of a candle stick chart and a line chart appearing together. OO could not display it!
    (see http://qa.openoffice.org/issues/show_bug.cgi?id=27363).
    We have research the problem for a while and figure that the easiest way is to develop an extension in Java using the Netbean Integration tool. Probably, adding a new chart type so that it is matched to the excel version. In chart2, it appears that they have changed the structure to a MVC model and under the diagram service, a coordinate system could have a list of charttype. So it appears that it is possible to draw a chart with different charttype on it even without the extension. However, we have not tried the chart2 API as we can't find a working example and SUN is not very helpful either and they discourage us to use chart2.
    (see http://graphics.openoffice.org/chart/chart2codestructure.html)
    can you give us advise how to approach this problem ?
    documentation resources , code snippets to call chart2 api from java code and any other helpful suggestion will be very welcomed.
    thanks.

    ok let me put it simply :
    com:sun:star:chart2 is not written in java, it is all written in C++ with those horrible IDL files which I don�t want to know about.
    However, i do think UNO make it possible to be used in a java environment.
    i searched the OOo website and also the web for an example snippet of a java program that calls com:sun:star:chart2 ; but i didn't found anything.
    it would be great if SUN engineers in this forum show me an example of how to use the OOo chart2 API in a java program.
    thanks.

  • Drawing pie chart

    import java.applet.*;
    import java.text.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Graphics;
    public class x2 extends Applet implements ActionListener {
         private Button draw,draw2,reset;
         private TextField thigh,tmedium,tlow,tno;
         private Label banner,l1, l2, l3, l4;
         double rhigh,rmedium,rlow,rno;
         double high, medium, low, no, total, high2=0, medium2=0, low2=0, no2=0,low3=0,no3=0;
         String something="";
         public void paint(Graphics g){
         setBackground(Color.white);
         if(something=="pie"){
              try{
    rhigh=Double.parseDouble(thigh.getText());
    rmedium=Double.parseDouble(tmedium.getText());
                   rlow=Double.parseDouble(tlow.getText());
                   rno=Double.parseDouble(tno.getText());
    if(rhigh<0||rmedium<0||rlow<0||no<0){
         throw new NumberFormatException();
              total=rhigh+rmedium+rlow+rno;
         high=(rhigh/total)*100;
         medium=(rmedium/total)*100;
         low=(rlow/total)*100;
         no=(rno/total)*100;
         high2=high*360/100;
              medium2=medium*360/100;
              low2=low*360/100;
              no2=no*360/100;     
              low3=high2+medium2;
              no3=low3+low2;
              DecimalFormat F=new DecimalFormat("###.000");
    g.setColor(Color.black);
    g.drawString("THE INVESTMENT ARE:",250,100);
    g.drawString("Pie Chart",450,100);
    g.setColor(Color.red);
    g.drawString(F.format(high)+" "+"% High Risk",250,140);
    g.setColor(Color.blue);
    g.drawString(F.format(medium)+" "+"%High Risk",250,180);
    g.setColor(Color.green);
    g.drawString(F.format(low)+" "+"% Low Risk",250,220);
    g.setColor(Color.pink);
    g.drawString(F.format(no)+" "+"% No Risk",250,260);
    g.setColor(Color.red);
    g.fillArc(500,80,200,200,0,360-(int)(medium2+low2+no2));
    g.setColor(Color.blue);
    g.fillArc(500,80,200,200,(int)high2,360-(int)(high2+low2+no2));
    g.setColor(Color.green);
    g.fillArc(500,80,200,200,(int)low3,360-(int)(high2+medium2+no2));
    g.setColor(Color.pink);
    g.fillArc(500,80,200,200,(int)no3,360-(int)(high2+medium2+low2));
    g.setColor(Color.red);
    g.fillRect(450,300,60,30);
    g.setColor(Color.blue);
    g.fillRect(450,330,60,30);
    g.setColor(Color.green);
    g.fillRect(450,360,60,30);
    g.setColor(Color.pink);
    g.fillRect(450,390,60,30);
    g.setColor(Color.red);
    g.drawString("High Risk Investment",520,320);
    g.setColor(Color.blue);
    g.drawString("Medium Risk Investment",520,350);
    g.setColor(Color.green);
    g.drawString("Low Risk Investment",520,380);
    g.setColor(Color.pink);
    g.drawString("No Risk Investment",520,410);
         catch(NumberFormatException e){
    g.drawString("Invalid value click the reset button and reenter your value",300,200);
              else if(something=="bar") {
              try{
    rhigh=Double.parseDouble(thigh.getText());
    rmedium=Double.parseDouble(tmedium.getText());
    rlow=Double.parseDouble(tlow.getText());
    rno=Double.parseDouble(tno.getText());
    if(rhigh<0||rmedium<0||rlow<0||no<0){
         throw new NumberFormatException();
         total=rhigh+rmedium+rlow+rno;
         high=(rhigh/total)*100;
         medium=(rmedium/total)*100;
         low=(rlow/total)*100;
         no=(rno/total)*100;
    DecimalFormat F=new DecimalFormat("###.000");
    g.setColor(Color.black);
    g.drawString("THE INVESTMENT ARE:",250,100);
    g.drawString("Bar Chart",530,100);
    g.setColor(Color.red);
    g.drawString(F.format(high)+" "+"% High Risk",250,140);
    g.setColor(Color.blue);
    g.drawString(F.format(medium)+" "+"% High Risk",250,180);
    g.setColor(Color.green);
    g.drawString(F.format(low)+" "+"% Low Risk",250,220);
    g.setColor(Color.pink);
    g.drawString(F.format(no)+" "+"% No Risk",250,260);
    g.setColor(Color.red);
    g.fillRect(480,250-(int)high,40,(int)high);
    g.setColor(Color.blue);
    g.fillRect(530,250-(int)medium,40,(int)medium);
    g.setColor(Color.green);
    g.fillRect(580,250-(int)low,40,(int)low);
    g.setColor(Color.pink);
    g.fillRect(630,250-(int)no,40,(int)no);
    g.setColor(Color.black);
    g.drawLine(450,250,700,250);
    g.drawLine(450,130,450,250);
    g.drawLine(445,150,450,150);
    g.drawString("Hight",485,265);
    g.drawString("Medium",535,265);
    g.drawString("Low",585,265);
    g.drawString("No",635,265);
    g.drawString("Percentage%",425,125);
    g.drawString("Risks",710,250);
    g.drawString("100",420,150);
    g.setColor(Color.red);
    g.fillRect(450,300,60,30);
    g.setColor(Color.blue);
    g.fillRect(450,330,60,30);
    g.setColor(Color.green);
    g.fillRect(450,360,60,30);
    g.setColor(Color.pink);
    g.fillRect(450,390,60,30);
    g.setColor(Color.red);
    g.drawString("High Risk Investment",520,320);
    g.setColor(Color.blue);
    g.drawString("Medium Risk Investment",520,350);
    g.setColor(Color.green);
    g.drawString("Low Risk Investment",520,380);
    g.setColor(Color.pink);
    g.drawString("No Risk Investment",520,410);     
         catch(NumberFormatException e){
    g.drawString("Invalid value click the reset button and reenter your value",300,200);
         public void init(){
         setLayout (null);
         draw=new Button("Draw pie chart");
         draw2=new Button("Draw bar chart");
         reset=new Button("Reset");
         thigh=new TextField("",10);
         tmedium=new TextField("",10);
         tlow=new TextField("",10);
         tno=new TextField("",10);
         l1=new Label("High Risk :$");
         l2=new Label("Medium Risk:$");
         l3=new Label("Low Risk :$");
         l4=new Label("No Risk :$");
         banner=new Label("Welcome");
         banner.setBounds(new Rectangle(200,50,100,20));
         add(banner);
    l1.setBounds(new Rectangle(20,100,100,20));
    add(l1);
    thigh.setBounds(new Rectangle(120,100,100,20));
    add(thigh);
    l2.setBounds(new Rectangle(20,140,100,20));
    add(l2);
    tmedium.setBounds(new Rectangle(120,140,100,20));
    add(tmedium);
    l3.setBounds(new Rectangle(20,180,100,20));
    add(l3);
    tlow.setBounds(new Rectangle(120,180,100,20));
    add(tlow);
    l4.setBounds(new Rectangle(20,220,100,20));
    add(l4);
    tno.setBounds(new Rectangle(120,220,100,20));
    add(tno);
    draw.setBounds(new Rectangle(20,260,100,20));
    add(draw);
    draw2.setBounds(new Rectangle(120,260,100,20));
    add(draw2);
    reset.setBounds(new Rectangle(20,290,100,20));
    add(reset);
    draw.addActionListener(this);
    draw2.addActionListener(this);
    reset.addActionListener(this);
         public void actionPerformed(ActionEvent e){
              if(e.getSource()==draw) {
                   something="pie";
                   repaint();
              }else if(e.getSource()==draw2) {
                   something="bar";
                   repaint();
              if(e.getSource()==reset) {
                   something="";
                   thigh.setText("");
                   tmedium.setText("");
                   tlow.setText("");
                   tno.setText("");
                   repaint();

    import java.applet.*;
    import java.text.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Graphics;
    public class x2 extends Applet implements ActionListener
         private Button draw,draw2,reset;
         private TextField thigh,tmedium,tlow,tno;
         private Label banner,l1, l2, l3, l4;
         double  rhigh,rmedium,rlow,rno;
         double  high, medium, low, no, total, high2=0, medium2=0, low2=0, no2=0,low3=0,no3=0;
         String something="";
         Double  d1;
    public void paint(Graphics g)
         setBackground(Color.white);
         if(something=="pie")
              try
    //          rhigh=Double.parseDouble(thigh.getText());
    //          rmedium=Double.parseDouble(tmedium.getText());
    //          rlow=Double.parseDouble(tlow.getText());
    //          rno=Double.parseDouble(tno.getText());
                   rhigh   = get_double(thigh.getText());
                   rmedium = get_double(tmedium.getText());
                   rlow    = get_double(tlow.getText());
                   rno     = get_double(tno.getText());
                   if(rhigh<0||rmedium<0||rlow<0||no<0)
                        throw new NumberFormatException();
                   total=rhigh+rmedium+rlow+rno;
                   high=(rhigh/total)*100;
                   medium=(rmedium/total)*100;
                   low=(rlow/total)*100;
                   no=(rno/total)*100;
                   high2=high*360/100;
                   medium2=medium*360/100;
                   low2=low*360/100;
                   no2=no*360/100;
                   low3=high2+medium2;
                   no3=low3+low2;
                   DecimalFormat F=new DecimalFormat("###.000");
                   g.setColor(Color.black);
                   g.drawString("THE INVESTMENT ARE:",250,100);
                   g.drawString("Pie Chart",450,100);
                   g.setColor(Color.red);
                   g.drawString(F.format(high)+" "+"% High Risk",250,140);
                   g.setColor(Color.blue);
                   g.drawString(F.format(medium)+" "+"%High Risk",250,180);
                   g.setColor(Color.green);
                   g.drawString(F.format(low)+" "+"% Low Risk",250,220);
                   g.setColor(Color.pink);
                   g.drawString(F.format(no)+" "+"% No Risk",250,260);
                   g.setColor(Color.red);
                   g.fillArc(500,80,200,200,0,360-(int)(medium2+low2+no2));
                   g.setColor(Color.blue);
                   g.fillArc(500,80,200,200,(int)high2,360-(int)(high2+low2+no2));
                   g.setColor(Color.green);
                   g.fillArc(500,80,200,200,(int)low3,360-(int)(high2+medium2+no2));
                   g.setColor(Color.pink);
                   g.fillArc(500,80,200,200,(int)no3,360-(int)(high2+medium2+low2));
                   g.setColor(Color.red);
                   g.fillRect(450,300,60,30);
                   g.setColor(Color.blue);
                   g.fillRect(450,330,60,30);
                   g.setColor(Color.green);
                   g.fillRect(450,360,60,30);
                   g.setColor(Color.pink);
                   g.fillRect(450,390,60,30);
                   g.setColor(Color.red);
                   g.drawString("High Risk Investment",520,320);
                   g.setColor(Color.blue);
                   g.drawString("Medium Risk Investment",520,350);
                   g.setColor(Color.green);
                   g.drawString("Low Risk Investment",520,380);
                   g.setColor(Color.pink);
                   g.drawString("No Risk Investment",520,410);
              catch(NumberFormatException e)
                   g.drawString("Invalid value click the reset button and reenter your value",300,200);
         if(something=="bar")
              try
    //     rhigh=Double.parseDouble(thigh.getText());
    //     rmedium=Double.parseDouble(tmedium.getText());
    //  rlow=Double.parseDouble(tlow.getText());
    //  rno=Double.parseDouble(tno.getText());
                   rhigh   = get_double(thigh.getText());
                   rmedium = get_double(tmedium.getText());
                   rlow    = get_double(tlow.getText());
                   rno     = get_double(tno.getText());
                   if(rhigh<0||rmedium<0||rlow<0||no<0)
                        throw new NumberFormatException();
                   total=rhigh+rmedium+rlow+rno;
                   high=(rhigh/total)*100;
                   medium=(rmedium/total)*100;
                   low=(rlow/total)*100;
                   no=(rno/total)*100;
                   DecimalFormat F=new DecimalFormat("###.000");
                   g.setColor(Color.black);
                   g.drawString("THE INVESTMENT ARE:",250,100);
                   g.drawString("Bar Chart",530,100);
                   g.setColor(Color.red);
                   g.drawString(F.format(high)+" "+"% High Risk",250,140);
                   g.setColor(Color.blue);
                   g.drawString(F.format(medium)+" "+"% High Risk",250,180);
                   g.setColor(Color.green);
                   g.drawString(F.format(low)+" "+"% Low Risk",250,220);
                   g.setColor(Color.pink);
                   g.drawString(F.format(no)+" "+"% No Risk",250,260);
                   g.setColor(Color.red);
                   g.fillRect(480,250-(int)high,40,(int)high);
                   g.setColor(Color.blue);
                   g.fillRect(530,250-(int)medium,40,(int)medium);
                   g.setColor(Color.green);
                   g.fillRect(580,250-(int)low,40,(int)low);
                   g.setColor(Color.pink);
                   g.fillRect(630,250-(int)no,40,(int)no);
                   g.setColor(Color.black);
                   g.drawLine(450,250,700,250);
                   g.drawLine(450,130,450,250);
                   g.drawLine(445,150,450,150);
                   g.drawString("Hight",485,265);
                   g.drawString("Medium",535,265);
                   g.drawString("Low",585,265);
                   g.drawString("No",635,265);
                   g.drawString("Percentage%",425,125);
                   g.drawString("Risks",710,250);
                   g.drawString("100",420,150);
                   g.setColor(Color.red);
                   g.fillRect(450,300,60,30);
                   g.setColor(Color.blue);
                   g.fillRect(450,330,60,30);
                   g.setColor(Color.green);
                   g.fillRect(450,360,60,30);
                   g.setColor(Color.pink);
                   g.fillRect(450,390,60,30);
                   g.setColor(Color.red);
                   g.drawString("High Risk Investment",520,320);
                   g.setColor(Color.blue);
                   g.drawString("Medium Risk Investment",520,350);
                   g.setColor(Color.green);
                   g.drawString("Low Risk Investment",520,380);
                   g.setColor(Color.pink);
                   g.drawString("No Risk Investment",520,410);
              catch(NumberFormatException e)
                   g.drawString("Invalid value click the reset button and reenter your value",300,200);
    private double get_double(String s)
         try
              d1 = d1.valueOf(s);
              return(d1.doubleValue());
         catch (NumberFormatException nfe)
              return(-1);
    public void init()
         setLayout (null);
         draw    = new Button("Draw pie chart");
         draw2   = new Button("Draw bar chart");
         reset   = new Button("Reset");
         thigh   = new TextField("",10);
         tmedium = new TextField("",10);
         tlow    = new TextField("",10);
         tno     = new TextField("",10);
         l1      = new Label("High Risk :$");
         l2      = new Label("Medium Risk:$");
         l3      = new Label("Low Risk :$");
         l4      = new Label("No Risk :$");
         banner = new Label("Welcome");
         banner.setBounds(200,50,100,20);
         add(banner);
         l1.setBounds(20,100,100,20);
         add(l1);
         thigh.setBounds(120,100,100,20);
         add(thigh);
         l2.setBounds(20,140,100,20);
         add(l2);
         tmedium.setBounds(120,140,100,20);
         add(tmedium);
         l3.setBounds(20,180,100,20);
         add(l3);
         tlow.setBounds(120,180,100,20);
         add(tlow);
         l4.setBounds(20,220,100,20);
         add(l4);
         tno.setBounds(120,220,100,20);
         add(tno);
         draw.setBounds(20,260,100,20);
         add(draw);
         draw2.setBounds(120,260,100,20);
         add(draw2);
         reset.setBounds(20,290,100,20);
         add(reset);
         draw.addActionListener(this);
         draw2.addActionListener(this);
         reset.addActionListener(this);
    public void actionPerformed(ActionEvent e)
         if(e.getSource()==draw)
              something="pie";
         if(e.getSource()==draw2)
              something="bar";
         if(e.getSource()==reset)
              something="";
              thigh.setText("");
              tmedium.setText("");
              tlow.setText("");
              tno.setText("");
         repaint();
    Noah

  • Adding editable charts in adobe 9 pro

    How do you insert an editable chart in Adobe Acrobat 9 Professional? I create bank forms and we are still behind the times. . .Just wondering if anybody has solutions out there. I'm going to attempt to insert an editable chart that has to do with Credit Scores

    There isn't anything like a built-in charting component that's available. There are tricks you can do with JavaScript, but there aren't a lot of resources available that can help you learn about this specifically.

  • Editing Chart from Libary

    Dear Guru's,
    I am using a Chart from my Library in around 50 Template'S.
    Now i want to change the Text which displays From this Chart. But When i try to Edit it, i get Following Message.
    IF You want to change the Chart Setting, Not just for this Template but for all those who use the library item, edit the associated library item.
    So then i went into Libary and Found my Chart, But when i say edit Chart. I don't see the text which display when Template Executes.
    Kindly suggest some solution...
    Thanks in Advance, Dev

    Hello
    As far as I know, you must do the task with the chart sitting in the same sheet than the tables.
    When done, you may move it to an other sheet but, to be honest, I don't understand the interest of such a move.
    An alternate workaround would be to insert an auxiliary table in the sheet where you put the chart.
    This table will peek the values in the main sheet.
    Yvan KOENIG (from FRANCE jeudi 1 mai 2008 11:11:51)

  • BI Publisher Template Builder - Can't add/edit chart

    Hi all,
    I am trying to edit a BIP template using the template builder.
    I can log on successfully using the Oracle BI Publisher / Log In option in the menu bar and I am able to choose the template I want to edit.
    Once I open the template, I try to edit one existent chart (right click on the chart / BI Publisher chart) and a chart window appears.
    The problem that I am facing is that I can't apply the new layout properties to the chart cause both the OK and PREVIEW buttons are disabled.
    I know I am probably missing some step but I don't really know which cause I am enew with BIP.
    The strange thing is that I can modify successfully the existent tables or even create new ones, but I can't add/edit new charts.
    I am using MS Word 2007 (I have tried with 2000 also in another laptop) with the template builder 10.1.3.4.1 version.
    Thanks in advance for help.
    Giovanni

    Hi Giovanni,
    I had the same issue and struggled with it a few hours, but the solution is very simple. Here are some directions for fixing this issue.
    1. In the Layout section there are three options to configure: Values, Aggregation and Labels.
    2. Make sure you add the fields to the Values option, select aggregation if it applies for your chart.
    3. Add the field to the Labels section, then you will enable the preview and OK buttons.
    Hope this helps.
    Jhon Castro

  • Can't seem to draw a chart (line chart) using dates rather than numbers

    I'm trying to draw a Line Chart but rather using numbers i want to use dates for example: Switzerland 23/06/2008 - 23/08/2008. Can't seem to get it to work? it seems to all go wrong when I change the cell format to 'date'
    Can anyone help?
    Thanks
    PS. I can do it easily in Excel

    Hello
    From my point of view, it's not surprising.
    In XL, a date is a number to which a date format is applied. So, it may be charted.
    Same thing with the good old AppleWorks.
    With Numbers, a date is NOT a number, it IS a specific class of data.
    The consequence is that it can't be charted directly.
    Happily, we may easily convert a date into a number.
    In column B the formula is
    =A-$A$1
    which calculates the numeric difference between stored dates and the date stored in A1.
    So, we may chart the results.
    I know that it's far from perfect but we have to live with the choices made by Numbers's designers.
    Yvan KOENIG (from FRANCE vendredi 18 avril 2008 18:44:14)

  • Editing chart Axis label

    Hi. I have a report where one chart repeats one time, and in Preview, I am able to click on the Axis label and find an option to Edit the label, where I define 1 - 12 as Jan - Dec. However, another chart repeats for 80 or so pages, thus I can't use Preview to edit the label as it effects one chart at a time. Is there a place to edit axis labels in Design?
    Thanks!
    Robin

    Thanks so much for following up on this. To clarify, converting month numbers to names is nice, and I did that using the specified order suggestion, but it doesn't effect the order of say, May, when Jan thru Apr are missing, and in fact created other issues of data misintrepatation I didn't bother resolving at the time.
    I suppose the best solution would be something that supplies a placeholder for blank months, so that the Jan-Dec order remains constast and the data graph bars appear in appropriate months, Jan-Apr no bars, May-Dec with data generated bars.
    Does this help?

Maybe you are looking for

  • Income tax amount adjustment

    Hi Experts, I am getting Income tax issue  as per SAP  for one employee income tax have to deduct 7450 rupees for the month of April. But my client has been deducted 9000 rupees for the month of April and paid salaries through legacy. Already I maint

  • Does the IPod Nano sink with the nike fuel band

    Does the IPod Nano sink with the nike fule band? I am getting the IPod nano for christmass and I was wondering if that is compatable with the fuel band? I have seen my firend sink his with his IPhone and was wondering if I could do the same?

  • Adf table columnStretching issue when using with in panel splitter

    My Scenario is like this: I have used adf table with columnStretching to last column of table. And the table is placed at second facet of panelSplitter. On load it covers full area of second facet which is pretty good. When try to collapse panelSplit

  • Pdf's created in Indesign having problem in "Black" color when it overlap with other color.

    Hi all,I Please respond to this as soon as possible since this is now in printing stage we need to send it immediately. Adobe disabled attachment, I just made a screenshot and sending you the image as attachment for your reference. The design has "Bl

  • From which table i can get the details of cancled documents

    Hi All, here is an quarry, Iam haveing an Z report on purchase tax which has all tax report. but now the user want to same details for cancled document also.So can any help me from which table i can fetch the data urgent ! pls help me out! Regards, R