How to make line chart start at y-axis?

How do you make the series on a line chart start at the y-axis?  I tried adding a data point for y(x=0), but the Xcelsius graph drops it and starts with y(x=1).  How do I fix that?  This is especially important for series that need to start at zero.

Post Author: amr_foci
CA Forum: Xcelsius and Live Office
its all based on ur design of your Excel sheet
design how it will be in Excel first
then go to xeclsius
,,, by the way it looks very easy task
you can do it.

Similar Messages

  • How to make lines I draw as an objects??

    Hi friends:
    I met a problem here, I find a similiar code below, but cannot solve it.
    How to make lines I draw as objects in this application??
    ie the lines I draw will be selectable as other JLabels, can be highlighted, can be deleted etc, just like any other components or object,
    How to do this??
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.util.Vector;
    import java.lang.reflect.Array;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Drawines
         public static void main(String[] args)
            JFrame f = new JFrame("Draw Lines");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new ConnectionPanel());
            f.setSize(400,300);
            f.setLocation(200,200);
            f.setVisible(true);
    class Drawines extends JPanel
        JLabel                                       label1, label2, label3, label4;
        JLabel[]                       labels;
        JLabel                                       selectedLabel;
        protected              JButton btn            = new JButton("DrawLines");
        protected              JButton btn1           = new JButton("Clear");
        protected              JButton btn2           = new JButton("No Draw");
        protected                      boolean isActivated = false;
        protected           int      stoppoint     = 0;          
        int cx, cy;
        Vector order                     = new Vector();
        Vector order1                     = new Vector();
        Object[] arr                    = null;
        public ConnectionPanel()
            setLayout(null);
            addLabels();
            label1.setBounds( 25,  50, 125, 25);
            label2.setBounds(225,  50, 125, 25);
            label3.setBounds( 25, 175, 125, 25);
            label4.setBounds(225, 175, 125, 25);
            btn.setBounds(10, 5, 100, 25);
            btn1.setBounds(100, 5, 100, 25);
            btn2.setBounds(200, 5, 100, 25);
                add(btn);
             add(btn1);
             add(btn2);
            determineCenterOfComponents();
            ComponentMover mover = new ComponentMover();
             ActionListener lst = new ActionListener() {
                 public void actionPerformed(ActionEvent e) {
                     ComponentMover mover = new ComponentMover();
                           addMouseListener(mover);
                           addMouseMotionListener(mover);
                           isActivated = false;
            ActionListener lst1 = new ActionListener() {
                       public void actionPerformed(ActionEvent e) {
                           isActivated=true;
              btn.addActionListener(lst);
              btn1.addActionListener(lst1);
        public void paintComponent(final Graphics g)
             super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
             Point[] p;
                System.out.println("order.size()"+ order.size());
                System.out.println("order1.size()"+ order1.size());
                     if (!isActivated && order1.size()==0) {
                         for(int i = 0 ; i < order.size()-1; i++) {
                                JLabel l1 = (JLabel)order.elementAt(i);
                               JLabel l2 = (JLabel)order.elementAt(i+1);
                               order1.add(order.elementAt(i));
                               order1.add(order.elementAt(i+1));
                               System.out.println();
                               p = getCenterPoints(l1, l2);
                               g2.setColor(Color.black);
                                            g2.draw(new Line2D.Double(p[0], p[1]));            
                     }else if(!isActivated && order1.size()>0){
                             order=order1;
                         for(int i1 = 0 ; i1 < order.size()-1; i1++) {
                               JLabel l1 = (JLabel)order.elementAt(i1);
                               JLabel l2 = (JLabel)order.elementAt(i1+1);
                               System.out.println();
                               p = getCenterPoints(l1, l2);
                               g2.setColor(Color.red);
                                g2.draw(new Line2D.Double(p[0], p[1]));    
                                System.out.println(" order1.size() = " + order.size());
                     }else {
                          order1 = order;
                         for(int i1 = 0 ; i1 < order1.size()-1; i1++) {
                                    JLabel l1 = (JLabel)order1.elementAt(i1);
                                    JLabel l2 = (JLabel)order1.elementAt(i1+1);
                                    p = getCenterPoints(l1, l2);
                                    g2.setColor(Color.blue);
                                    if (order.elementAt(i1) !=null){
                                         g2.draw(new Line2D.Double(p[0], p[1]));    
        private Point[] getCenterPoints(Component c1, Component c2)
            Point
                p1 = new Point(),
                p2 = new Point();
            Rectangle
                r1 = c1.getBounds(),
                r2 = c2.getBounds();
                 p1.x = r1.x + r1.width/2;
                 p1.y = r1.y + r1.height/2;
                 p2.x = r2.x + r2.width/2;
                 p2.y = r2.y + r2.height/2;
            return new Point[] {p1, p2};
        private void determineCenterOfComponents()
            int
                xMin = Integer.MAX_VALUE,
                yMin = Integer.MAX_VALUE,
                xMax = 0,
                yMax = 0;
            for(int i = 0; i < labels.length; i++)
                Rectangle r = labels.getBounds();
    if(r.x < xMin)
    xMin = r.x;
    if(r.y < yMin)
    yMin = r.y;
    if(r.x + r.width > xMax)
    xMax = r.x + r.width;
    if(r.y + r.height > yMax)
    yMax = r.y + r.height;
    cx = xMin + (xMax - xMin)/2;
    cy = yMin + (yMax - yMin)/2;
    private class ComponentMover extends MouseInputAdapter
    Point offsetP = new Point();
    boolean dragging;
    public void mousePressed(MouseEvent e)
    Point p = e.getPoint();
    for(int i = 0; i < labels.length; i++)
    Rectangle r = labels[i].getBounds();
    if(r.contains(p) && !isActivated )
    selectedLabel = labels[i];
    order.addElement(labels[i]);
    offsetP.x = p.x - r.x;
    offsetP.y = p.y - r.y;
    dragging = true;
    repaint(); //added
    break;
    public void mouseReleased(MouseEvent e)
    dragging = false;
    public void mouseDragged(MouseEvent e)
    if(dragging)
    Rectangle r = selectedLabel.getBounds();
    r.x = e.getX() - offsetP.x;
    r.y = e.getY() - offsetP.y;
    selectedLabel.setBounds(r.x, r.y, r.width, r.height);
    //determineCenterOfComponents();
    repaint();
    private void addLabels()
    label1 = new JLabel("Label 1");
    label2 = new JLabel("Label 2");
    label3 = new JLabel("Label 3");
    label4 = new JLabel("Label 4");
    labels = new JLabel[] {
    label1, label2, label3, label4
    for(int i = 0; i < labels.length; i++)
    labels[i].setHorizontalAlignment(SwingConstants.CENTER);
    labels[i].setBorder(BorderFactory.createEtchedBorder());
    add(labels[i]);
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    2 choice, bundle your app in a jar, or get a native compiler.
    executable jar
    http://java.sun.com/j2se/1.3/docs/guide/jar/jarGuide.html
    http://developer.java.sun.com/developer/qow/archive/21/index.html
    native
    http://gcc.gnu.org/java/
    http://www-106.ibm.com/developerworks/library/j-native.html
    http://icafe.sourceforge.net/
    http://www.towerj.com/
    http://www.xlsoft.com/en/products/development/jet/jetpro.html

  • How to create line chart

    Hii Experts,
    How to create line chart?
    I want to  prepaire a line chart in a report. i have 1 table. In a table have 2 fields. chart is created in these 2 field refrence how It's possible?
    Thanx in Advance
    Regards
    Vshal

    I found it very easy to produce a line chart in a window container using FM GFW_PRES_SHOW.  In my case this produces a basic line graph with three lines across 15 time periods.
    See transaction GRAL for various chart types...they're relatively easy to produce...  I picked DEMO_GFW_PRES_SHOW report program from GRAL as my example for how to produce a simple line chart very quickly.

  • How to generate line chart (e.g. stock market) in midlet?

    how to write such a line chart in midlet? any tutorial recommended?
    thanks a lot.

    Well, I would draw it myself. I think that's your only option. If you are not familiar with MIDP, then you should start with a beginner tutorial - it will not have anything to do with graphics, but more importantly it will introduce you to the programming model. You'll need the experience when you grapple with graphics. Not a big deal, but I haven't seen any samples for it, so you'll have to work off of the API docs. A nice page with sample programs:
    http://wireless.java.sun.com/midp/samples/
    If you are familiar with MIDP programming, or when you are, then hop over to the API and you'll find what you need there. Some simple math and some custom graphic routines/classes and you'll be well on your way. Here's the API location for the graphics class in the MIDP API:
    java.lang.Object
    |
    --javax.microedition.lcdui.Graphics
    Good luck. Hope this helped.

  • How to dispaly Line chart in output?

    Hi All,
    My requirement is that I want to display a line graph for 'year vs revenue' after calculation of revenue.
    I tried this with the FM GRAPH_2D . It displays only bar chart initially, for getting Line chart I have to choose it manually in options after displaying it, but I want to display the line graph directly without any manual operation.
    I've used the FM as below,
    CALL FUNCTION 'GRAPH_2D'
      EXPORTING
        inform             = 'X'
    *    display_type       = ''
        titl               = 'Year Vs Revenue'
      TABLES
        data               = it_summary
      EXCEPTIONS
        gui_refuse_graphic = 1
        OTHERS             = 2.
    Please let me know how to get the line chart directly using either FM GRAPH_2D or any other FM if you know that could do this.

    Hi,
    try this:
    DATA: BEGIN OF IGRAPH OCCURS 0,
            TXT   TYPE CHAR10,
            VALUE TYPE P,
          END   OF IGRAPH.
    DATA: TITLE(80) VALUE 'Header'.
    IGRAPH-TXT = '2000'. IGRAPH-VALUE = 10. APPEND IGRAPH.
    IGRAPH-TXT = '2001'. IGRAPH-VALUE = 23. APPEND IGRAPH.
    IGRAPH-TXT = '2002'. IGRAPH-VALUE = 06. APPEND IGRAPH.
    IGRAPH-TXT = '2003'. IGRAPH-VALUE = 34. APPEND IGRAPH.
    IGRAPH-TXT = '2004'. IGRAPH-VALUE = 45. APPEND IGRAPH.
    IGRAPH-TXT = '2005'. IGRAPH-VALUE = 66. APPEND IGRAPH.
    IGRAPH-TXT = '2006'. IGRAPH-VALUE = 15. APPEND IGRAPH.
    IGRAPH-TXT = '2007'. IGRAPH-VALUE = 17. APPEND IGRAPH.
    IGRAPH-TXT = '2008'. IGRAPH-VALUE = 30. APPEND IGRAPH.
    CALL FUNCTION 'GRAPH_2D'
      EXPORTING
        TITL   = TITLE
        VALT   = 'Value in EUR'
        WINSZX = '75'
        WINSZY = '75'
      TABLES
        DATA   = IGRAPH.
    CALL FUNCTION 'GRAPH_2D'
      EXPORTING
        TITL   = TITLE
        VALT   = 'Value in EUR'
        WINSZX = '75'
        WINSZY = '75'
        DISPLAY_TYPE = 'LN'
      TABLES
        DATA   = IGRAPH.
    CALL FUNCTION 'GRAPH_2D'
      EXPORTING
        TITL   = TITLE
        VALT   = 'Value in EUR'
        WINSZX = '75'
        WINSZY = '75'
        DISPLAY_TYPE = 'ST'
      TABLES
        DATA   = IGRAPH.
    and look in the Docu of this FM (Field DISPLAY_TYPE)
    Regards, Dieter

  • How to make lines for "fill in the blanks?" (iWork Pages 09)

    This should be easy since it's something many people do: design a form for others to fill out with a pen or pencil.  However, I can't find any information regarding how to make a line after text, like this:
    Name _________________ Address _________________________________ Phone __________
    ...without using the underline character.
    Back on the Clarisworks days there was some way to make nice neat lines after text using tabs.  However, It's been so long that I can't recall how it worked.  I've Googled this issue using every logical term I can think of but found nothing useful.  The Pages 09 help file and the user guide  seem to be mute on this subject. The Word 2008 help file is similarly silent.  However, I'm sure that the greater Pages community knows the answer to this one.
    Thanks,
    Bill

    What you want is called a tab leader. In Pages, to create the underline:
    To create a new tab stop using the Text inspector, click in the document where you want to create a new tab stop, click Inspector in the toolbar, and then click Tabs. Click the Add button in the bottom-left corner of the Tabs pane. The new tab stop appears in the Tab Stops column.
    Then  use the Leader drop down menu to choose a solid line:

  • How to make stop and start in one button

    Hello All
    My Question is how to make button that when I prees it first time work as stop button and when I press it second time work as start button, I hope if I found my answer soon.
    thank u all
    Best Regards

    It's probably not worth to add all these sequences, local variables, and parallel loops. Here's a somewhat simpler version, showing two possibilities: 0:using events, 1: not using events. Pick one!
    There are many other possibilities. It really depends what else there is.
    Message Edited by altenbach on 10-15-2007 06:59 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    StartStopMOD.vi ‏19 KB

  • How to make a chart/graph of text?

    Trying to make a chart of "Causes of Death" from a database of people to see how many people died of each cause. I have a standard database with names listed vertically, and categories (last name, first name, age, cause of death, etc.) horizontally. Please help!

    Additional thoughts.
    You can automate the generation of the list in Table 2, column A.
    Add two columns to the right end of Table 1 (or use existing columns if there are two there already).
    For the example, I'll assume they're columns P and Q.
    In Q2, enter
    =IF(LEN(D)>0,D,"")
    and Fill down the rest of the column. (This copies the contents of column D to a column placed to the right of P, necessary for the VLOOKUP function in the formula used in Table 2.)
    In P2, enter
    =IF(COUNTIF($D$2:D2,D2)=1,MAX($P$1:P1)+1,"")
    and Fill down the rest of the column. (This produces a running count of the distinct causes listed in column D, and marks the first occurrence of each with a serial number.)
    Note that P1 may contain only text or the number zero.
    Note that the function is quite literal—Whiskey and Whisky will be identified as distinct causes and counted separately.
    On Table 2, in cell A2, enter:
    =IFERROR(VLOOKUP(ROW()-1,Table 2 :: P:Q,2,FALSE),"")
    and Fill down the rest of the column. (This looks up the serial numbers in column P of Table 1, and returns the cntents of the cell to the right of each one. The IFERROR part acts as an error trap to avoid error triangles where the formula looks for numbers larger than the highest serial number. "FALSE" in VLOOKUP will appear as "exact-match" in the formula when placed in the table.
    Regards,
    Barry

  • How to plot line chart for huge xml files?

    Guys,
    I would like to plot files over 2000 lines in a line chart!
    but the application is getting very slow!
    does anyone have any tips to improve performance?

    Can we see how you implement the LineChart and bind the XML please?
    It should be fast normally.

  • How to customize line chart series and symbols?

    Hello Forum,
    who can help me to customize line chart series and symbols color?
    I need to customize this in dynamic way.
    Thanks in advanced.

    See example 8-10 (Example 8-10 Changing Chart Symbol Color) from http://docs.oracle.com/javafx/2.0/charts/css-styles.htm#CIHGIAGE (reproduced here).
    The linked tutorial document contains a picture of how this example renders.
    .chart-series-line {   
        -fx-stroke-width: 2px;
        -fx-effect: null;
    .default-color0.chart-series-line { -fx-stroke: #e9967a; }
    .default-color1.chart-series-line { -fx-stroke: #f0e68c; }
    .default-color2.chart-series-line { -fx-stroke: #dda0dd; }
    .default-color0.chart-line-symbol { -fx-background-color: #e9967a, white; }
    .default-color1.chart-line-symbol { -fx-background-color: #f0e68c, white; }
    .default-color2.chart-line-symbol { -fx-background-color: #dda0dd, white; }Note the two comma separated colors listed for each -fx-background-color for the chart-line-symbol.
    The first color is the color or the outside of the symbol, the second is the inside of the symbol.
    In the sample css you provided you only supply a single background color for the chart-line-symbol, when two colors are required.

  • How to make line-in come out rear speakers? (SB Live! 5

    Card is SB Li've! 5. DE and OS is XP SP2:
    ================================
    I have tried everything that I can think of. It was working fine until I installed a program which screwed up my mixer settings. I have loaded the default mixer settings. Now my rear speakers only work for wave devices, but not line-in.
    Is there a way to make line-in come out both the front and rear speakers, or set the rear speakers to duplicate the front speakers (losing the surround feature)?
    Failing that I will have to resort to plugging both sets of speakers into the one socket via an adapter - I don't wish to do this as I had this working for many months.
    Please help.
    grol
    Message Edited by groslchie on <SPAN class=date_text>-2-2005 <SPAN class=time_text>07:22 AM
    Message Edited by groslchie on -2-2005 07:23 AM

    Weird. I just installed Creative PlayCenter from the driver CD and after the reboot, line-in now comes out the rear speakers again. Must've been some system files updated or something, because CMSS is still off according to PlayCenter. When I turn CMSS on, the line-in stops coming out rear, but turning it off makes it work!!!! So it's sorted, but still have no idea why it screwed up and why I needed PlayCenter installed to change the CMSS settings.

  • How to draw Line Chart in SAP?

    There is a request that the customer want to see Line Chart in the report.
    Is it possible to do it using abap?
    Thank you very much.

    Hi,
    Yes it is possible.
    GOto Tcode SE83>Expand graphics node>double click on that
    you will get all graphic programs.

  • How to make kwl chart?

    I need to make a chart with 3 columns, and 2 rows; one row for the title and the other one filled with information

    What is stopping you?
    Peter

  • Line chart cuts off x-Axis value

    Hi All,
    Have created a display to display an x-Axis value versus a Y-Axis value using a Line Chart. We want to maximize the chart space so we have removed the Legend from the display, problem is doing this cuts of part of the final x-Axis label and part of the final data point on the graph ? Why - can we move the borders out ?
    Emmett

    Emmett,
    You can "Fake" some extra space out of the right side of the chart by setting the legend colors to blend into the background of the chart.  This includes unchecking the "Use Pen Color?" box and setting the labels in the legend to match as well.  Then simply set the legend to be whatever additional width you need.  Other than this there's not really any other way that I can think of.  Hope this helps.
    Sam

  • JDev902: How to make it NOT start up a web browser on debug start?

    In my JDeveloper setup, when I click on the bug to start my application, it starts up the embedded OC4J and eventually finishes initializing it. I then go to my already running web browser and request the application URL. This works fine.
    My colleagues, however, get slightly different behavior when they click on the bug, at some point during that process it actually starts up another instance of a web browser and tries to go to a particular web page. We all find that very annoying and would like to turn it off. Fortunately for me, it doesn't do that to me. What do they have to do in their environments to make that NOT happen? We don't want it to start another web browser instance when we debug the application.

    You'd think if the field was blank, it wouldn't do this at all.
    I looked at my configuration, and the field is blank.
    I went to my coworker's system, whose field was also blank, and who is getting this annoying behavior, so we changed the field to "aaaa". This works. It doesn't bring up the browser window. It does, however, still print out a line in the messages window, like this:
    Target URL -- http://<ipaddress>:8992/felix/index.jsp
    I do NOT see this message.
    So this workaround helps, as it avoids the annoying symptom, but I still wonder WHY I never had this problem, and why I don't see that "Target URL" message, which seems to be related. Both of us have the "Default run target" in our projects set to the same JSP page.

Maybe you are looking for

  • Status SYSFAIL in SMQ1

    Hi All, We are getting an error message with status "SYSFAIL" in SMQ1 while replicating the BP from CRM to ECC and the message goes like "The current application triggered a termination wi th a short dump." The BDoc status is in YELLOW status. Please

  • Installing multiple versions of Flash Player

    I am running Windows 7 x64, and curently have Google Chrome running in addition to IE 8.  Has anyone installed multiple versions of Flash Player to support both browsers...IE and Chrome? Thanks in advance.

  • Oracle J2EE container, Web Layout, JSP, Tomcat

    Please help me with the next questions: 1)Oracle DB server and Oracle J2EE container are located in different places. The jsp in Oracle report web layout was generated. I put this JSP on the Oracle J2EE container and tried to run this jsp: http://loc

  • U410 Touch won't come out of sleep mode

    I've been having some serious issues with my 3 month old ideapad U410 touch. I first started having problems after installing Windows 8.1. There were many compatibility issues and I had to do a restore to factory settings to go back to Windows 8. Tha

  • My printer sharing is not working,I get this error "job stopped on server"

    I recently turned on printer sharing on my mac mini that my printer is connected to. I am trying to prince from my mac pro. It shows the printer as an option to print and I have set it as the default printer. It can find the printer and starts to pri