Problem Plotting a Line Graph

I am trying to plot some line graphs on Numbers and am a new user.
I can't seem to work out an issue. I want the numbers on the X axis to ascend from 0 onwards from left to right but at the moment they are descending from 10 to 0 left to right.
How can I change this so the graph is plotted logically?
Thanks in advance

There are two basic types of X-Y charts.  All but one are "category" charts where the X axis is evenly spaced and the "numbers" are actually text. The data will be presented in the order listed in your table.  The other is a scatter chart. The icon for this chart looks like a shotgun blast.
If your X axis numbers are evenly spaced (0,1,2,3...) you can use either type of chart.  Sort your table in ascending order and it will chart as you want it to.
If your X axis numbers are not evenly spaced (such as 1,2,4,5,10) and you want the chart to be a true X-Y plot of the data, you have to use the scatter chart.  In contrast to the category charts where the X axis values must be in a header column/row, a scatter chart requires the X and Y data to be in data cells. You may have to move your data over a column so the X data is not in a header column.

Similar Messages

  • Problems with Flash Line Graphs

    I have two problems with the new Flash Line Graphs in APEX 3.1
    1. I have created a query that returns a set number of rows. Sometimes the VALUE for a specific row might be null. When this occurs the LABEL data does not show up on the X axis. I want the LABEL data to show up no matter what. How do I accomplish this?
    2. Related to the above query. When the VALUE field is null for 3 records (or more) in a row, not only does the LABEL data for those records not display, the VALUE and LABEL data for the records that appear in the set after these 3 records also do not display. If one or even two null VALUE fields appears in a row, things are still OK. What do I need to do to get all my data to display?
    Any help would be appreciated.
    THANKS
    Raymond

    Raymond,
    For the Interactive report chart issue, could it be related to this?
    Re: Apex 3.1. Interactive Report. Questions and Problems.
    Interactive Report. Chart. Seems to be bug...
    - Christina

  • Help needed in plotting line graph!

    Hi i need help in plotting a line graph complete with both axes shown,plus the legend on the side shown.
    Pls help!!!!
    rgds

    Here's a simple line graph applet I did some time backimport java.awt.*;
    public class LineGraff extends java.applet.Applet{
       double []toGraff = {6.0, -14.0, -164.0, -210.0, 108.0, 770.0,
                                1354.0, 896.0, -572.0, -1348.0, -780.0, -108.0};
       double []numsFromFile = {6.0, -14.0, -164.0, -210.0, 108.0, 770.0,
                                1354.0, 896.0, -572.0, -1348.0, -780.0, -108.0};
       int max, min, size, Hscale;
       double Vscale;
       public void init(){
          size = numsFromFile.length-1;
          java.util.Arrays.sort(numsFromFile);
          max = (int) numsFromFile[size];
          min = (int) numsFromFile[0];
          Vscale = max-min;
          Vscale = 200/Vscale;
         Hscale = Math.round(300/size);
       public void paint(Graphics g) {
          g.setFont(new Font("Arial",0,14));
          g.drawString("Example app: drawing a graph from a double array",25,18);
          g.setFont(new Font("Arial",0,10));
          g.setColor(Color.blue);
          g.fillRect(10,20,365,230);
          g.setColor(Color.cyan);
          g.drawLine(25,25,25,225);
          g.drawLine(25,140,330,140);
          g.setColor(Color.white);
          int intA = 30, intB = 0, intC = 0;
          int intD = (int) (Math.round(140 - (Vscale * toGraff[0])));
             for(int i=1; i <= size; i++) {
               intC = intA + Hscale;
               intB = intD;
               intD = (int) (Math.round(140 - (Vscale * toGraff[ i ])));
               g.drawLine(intA, intB, intC, intD);
                  if(toGraff[ i ] > 0)
                     g.drawString(Double.toString(toGraff[ i-1 ]), intA+6, intB-3);
                  else
                     g.drawString(Double.toString(toGraff[ i-1 ]), intA+6, intB+8);
               intA += Hscale;
          g.drawString(Double.toString(toGraff[size]), intA+6, intD-3);    
    }

  • Help with jfree regarding plotting multiple lines in a line graph

    hi,
    i have
    < time>
    < volume>
    i have sucessfully used this data to plot a line graph(1 line)
    now i have
    <time> <time2>
    <volume> <volume2>
    how do i put this values into a single line graph? that means, i will have a line graphs with 2 lines.
    Help appreciated. Thanks Alot

    any help? still need help. thanks

  • 3D Line Graph.vi not displaying line connecting data points.

    I'm having trouble getting 3D Line Graph.vi to display the line connecting my data points.  I'm collecting latitude, longitude, and depth data from a binary file, loading this data into arrays with a while loop, and sending those arrays to 3D Line Graph.vi.  When I tried doing it with arrays created by random number generators, the line is displayed, but when I use it with my actual data, no lines are displayed.  I can only see where the data points are when rotating the 3D graph.  Any ideas on this would be appreciated.
    Thanks,
    Morgan
    Attachments:
    Plot Depth.PNG ‏61 KB

    Karunya,
    Thanks for the info on the 3-D Curve VI.  I tried it and it works.  I think I was able to find the problem with 3D Line Graph.vi.  It has something to do with plotting very close points away from the origin and scaling the axes to view the line.  I have attached an example of where the vi breaks down.  In this example, you can see that part of the line is drawn, but when you rotate the graph, you can see that the line is not drawn through all of the points.  If you change the scale of the axes, then you eventually get the line to go through all of the points, but then the graph is not very "readable" at that point.  It's when you try to zoom in really close to the plotted points.
    Thanks!
    Morgan
    Attachments:
    3d Line Graph Error.vi ‏16 KB

  • Report Line Graph Question

    Hi, I am plotting a line graph with some date values on the X axis and some data on the Y axis.
    For Example:
    Sep 01 11
    Sep 02 19
    Sep 03 14
    Sep 04
    Sep 05 9
    Sep 06
    Sep 07
    Sep 08 19
    This will result in gaps on the 4th, 6th and the 7th. This is expected behaviour. However, is it possible to set some properties in the graph so the line will be continuous. For Example From 14 to 9 (downward) and from 9 to 19 (upward), without 'assuming' values or nvling to 0 (then the line will drop all the way to 0 and bounce up). ( I want to include dates without Y axis data )
    I have markers on points that have values (ex: 11,19,14,9 and 19), if the line just connects without data there will not be any markers and the user will understand there are no data for those dates. The continuous line will make it easy to understand the flow (without using a fit or a trend line).
    I have pretty much exhausted all attribute settings from graph.dtd
    Note: I have an access chart I am converting to Reports and access lets you do this and I have to maintain the same in Reports !
    Thanks
    A
    null

    Bump. Thanks

  • Line Graph Behaviour

    I have a series of data
    01-JAN-2008 10
    01-FEB-2008 20
    01-MAR-2008 30
    01-DEC-08 30
    and some data for 2009
    01-JAN-2009 5
    01-FEB-2009 10
    01-MAR-2009 20
    01-APR-2009 30
    I am trying to produce a rolling 12 month Graph with the Month as the label and Year as the colour. So if my current data was for May 2009 I'd see the following Axis for Month:
    Jun Jul Aug Sept Oct Nov Dec Jan Feb Mar Apr May
    I'd expect to see:
    . line from Jun ending in December for 2008 series.
    . line starting in Jan ending in May for 2009 series.
    My problem is the line graph default behaviour seems to be to assume a value of 0 where there are no Axis points, drawing the line to 0, not simply ending the line.
    Has anyone attempted to do anthing like this?
    Thanks for your help.

    I'm surprised that you're not able to find this functionality yourself, because it is just under one of the chart option icons.
    To be specific: click on the axis scaling icon, then click on Edit Scale Markers, click add. You can choose for a line or range.
    Regards,
    Stijn

  • How to show a one line in line graph in 2 colors?

    I need to create a line graph which shows the data which is forecasted to the future.
    Ex. Today is 8/10/2006.
    Start and end dates for graph are 8/1/06 thru 8/20/06.
    The line graph need to show in red color till 8/10/2006 and from 8/11/06 thru 8/20/2006, the line need to be in blue color. Is there any option to show the graph like this?
    Or are there any alternative ways to show the graph which separates out data in 2 colors conditionally?
    Thanks for ur inputs.

    I think i donot get your point correctly.
    I wrote query like
    select dept, date, act, fst
    from..
    where..
    The data is coming properly like
    Dept Date Actual Forecast
    1      1 12 null
    1      2 11 null
    1      3 14 null
    1      4 15 null
    1      5 14 null
    1      6 null 14
    1      7 null 14
    1      8 null 15
    1      9 null 15
    1      10 null 15
    2      1 20 null
    2      2 17 null
    2      3 13 null
    2      4 15 null
    2      5 14 null
    2      6 null 14
    2      7 null 15
    2      8 null 19
    2      9 null 13
    2      10 null 13
    3      1 19 null
    3      2 14 null
    3      3 14 null
    3      4 13 null
    3      5 14 null
    3      6 null 14
    3      7 null 14
    3      8 null 18
    3      9 null 18
    3      10 null 18
    Next i plotted the line graph selecting "category" as date and dept.
    and Data as Act and Fst.
    In layout tab, Lines were dept
    and group is date.
    And the graph.xml is
    <rw:graph id="CT_2" src="G_dpt_id" groups="period_start_date" series="dpt_name" dataValues="act,fct">
    <!--
    <?xml version="1.0" ?>
    <Graph version="3.2.0.22" markerDisplayed="false" graphType="LINE_VERT_ABS">
    <LegendArea automaticPlacement="AP_NEVER" position="LAP_BOTTOM"/>
    <SeriesItems>
    <Series id="1" color="#ff6666"/>
    </SeriesItems>
    </Graph>
    -->
    </rw:graph>
    But, the graph is not plotting properly. It is showing just as "Series" and "Groups" without showing actual Series and Group values on the axes.
    Do i need to pivot this query to look like what you posted to show the graph correctly?
    Thanks for helping me with this.

  • CR XI - Problem Setting Line Graph colors in the Chart Expert

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I created a Crystal Report (CR) of an existing Trend Analysis report. I have created a VB6 application that calls the .RPT file I created for the report in CR.  The VB6 app sets the report recordset via code that corrsponds to the .TTX file, and the parameters .  The report contains a Line graph that plots five pieces of data.  The report & graph work good.  CR determines the color of each line on the graph.  However, I need to set the color for each line to correspond to the colors used on our existing reports.  The users are accustom to a certain color representing a certain set of data on the existing reports.   I have tried everything I can think of and from all documentation I can find, and nothing changes the line colors.   I have tried all of the following:
    1.) From the Chart Expert, Option tab, I click the Format button next to Color and setup conditional color settings per each piece of data.   However, when I run the report these conditional color settings are not reflected on the CR graph.     I am using formula fields (based off database fields in the recordset) to produce the report.  However, I only see the database fields to use in the conditional color formatting screen and not the formula fields.    I thought this would possibly be the cause why the colors wonu2019t change on the CR, but I canu2019t find a way to make the formula fields show up in the list.
    2.)Also, I tried right clicking the individual lines of the graph and change the selected item color, but this didnu2019t change the color either.  I do this in Design mode and Preview mode and neither one changes the color of the lines on the graph.
    3.)I have also looked into the CR object model to see if I can change the line colors of the graph via code and it doesn't look like I am given this flexibility.
    Do you know what I am doing wrong here?   I just want to be able to set the color of each line on the CR graph to the color I want instead of using the default colors.
    Thanks,Steve

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I got the problem fixed w/ the line graph not making the data lines the same color on the report as on the frmPlot graph.   Compare the two screen shots below.   The problem was as follows:  When I created the graph (in the Chart Expert) the field u201CReadingDateu201D was not one of the Report Fields, and all the other fields were Report Fields (Reading, LowAlarm, UpperAlarm, LowerLimit, & UpperLimit). See the 3rd screen shot below.  ReadingDate does show up as a Report Field now but it wasnu2019t at first.   Originally, this field was only available in the Chart Expert as a recordset field.  When I changed this field to be a Report Field, the graph then allowed me to change the data series line colors.   This was not obvious at all.   From the beginning when I setup the graph and passed in the recordset from VB it graphed all of the data series fine.   The colors that the Chart Expert chose for each line just didnu2019t match what was on the frmPlot graph.   Anyway, it is working now.     I can at least say I learned (somethingu2019s to-do and somethingu2019s not to-do) a good bit about Crystal Reports in the process.
    Thanks

  • Line Graph Problem when used with Series

    I am facing a problem with Line Graph in Oracle Reports 10g.
    I have made a graph having series of three curves.
    The graph is perfect when all series have similar X-Axis values. See the link
    http://www.sysautomation.com/ask/RPT_LINE_GRAPH_OK.PDF
    But same graph does not print curves properly, gives spaces in the curves, when all the series do not have similar values on X-Axis
    http://www.sysautomation.com/ask/RPT_LINE_GRAPH_NOT_OK.PDF
    Pl. guide me what to do to make this graph working.

    Thanks for reply.
    In my case, I have to plot curves.
    and some Series have different X-axis values.
    I have no choice, but to plot them.
    The same thing was working fine with Reports 6i + Graphics 6i.
    What is Scatter Plot?
    Thanks again.
    This is a limitation in the current line graph in
    Reports 10g (9.0.4). I can't recall whether this has
    improved in 10.1.2 or it was planned for the next
    rev.
    Would trying a scatter plot be better?
    Line graphs are normally meant for regular intervals
    on x-axis, so using the example of dates, Jan, Feb
    and Dec would be placed right next to each other,
    rather than scaled with the right distance between
    Feb and Dec.

  • Line Graph problem plz help :(

    Problem fixed
    Message was edited by:
    bm_za

    Thanks for reply.
    In my case, I have to plot curves.
    and some Series have different X-axis values.
    I have no choice, but to plot them.
    The same thing was working fine with Reports 6i + Graphics 6i.
    What is Scatter Plot?
    Thanks again.
    This is a limitation in the current line graph in
    Reports 10g (9.0.4). I can't recall whether this has
    improved in 10.1.2 or it was planned for the next
    rev.
    Would trying a scatter plot be better?
    Line graphs are normally meant for regular intervals
    on x-axis, so using the example of dates, Jan, Feb
    and Dec would be placed right next to each other,
    rather than scaled with the right distance between
    Feb and Dec.

  • Help needed in plotting Line Graph!!!!!!!!!Pls help!!

    Hi, i need help in plotting a simple line graph showing the x&y axis and has to plot 3 different lines in the same graph.I have written a program and i need to implement this graph in it.Is there any tutorial for plotting line graphs,i mean steps included.
    Please help!

    You describe your need, but not where it originates from.
    Is it a programming assignment? If so, I hope this is not your chosen major, as you will fail because you are a non-resourceful plagarist.
    Do you need to simply graph some data? Use an existing package. There are free ones somewhere.
    What do you mean "i have written a program and i need to implement this graph in it"? If you wrote the program, wouldn't you be done?
    Enjoy programming

  • BI Publisher 11g. Plotting multiple lines in a line graph

    Hi,
    We have a requirment where we need to show multiple lines in a line graph. I have gone through the earlier posts for this topic but when I am following the same steps I am not able to resolve the problem.
    I have 3 mterics: Month (which will be X-axis) , Size (Which will be on y-axis) and Name. I have names for 10 tables and i want to display 10 lines in my line graph.
    In the chart generator, I am using Month in "Labels", Table name for "color" field" and size in the "values" section.
    When I am trying this I am geting the following error in chart generator. It says " The data required 2 columns. The data has only 1 column." To trick the system, I also put a dummy column with static value of 1, but then also i am getting the same error, that it requires 2 columns.
    the sample XML for the chart is like this:
    <G_2>
    <TABLE_SIZE_TRENDS>43.90832000000001</TABLE_SIZE_TRENDS>
    <TABLE_NAME>Table1</TABLE_NAME>
    <MONTH_NAME_TRENDS>April</MONTH_NAME_TRENDS>
    </G_2>
    - <G_2>
    <TABLE_SIZE_TRENDS>69.62872</TABLE_SIZE_TRENDS>
    <TABLE_NAME>Table2</TABLE_NAME>
    <MONTH_NAME_TRENDS>April</MONTH_NAME_TRENDS>
    </G_2>
    It looks pretty straightforward but I am stuck in it for quite some time now.
    All your guidance is greatly appreciated in this regard.
    Regards,
    Aakarsh

    any help? still need help. thanks

  • Simple line graph problem

    Hi there,
    I want to create a very simple line graph, containing 1 line. Therefore i create a Graph.LINE_VERT_ABS type Graph and add the data using myGraph.setLocalRelationalData(al ArrayList). This arraylist contains values in the form of
    setname jan 12.2
    setname feb 14.5
    setname march 8.1
    etc
    When i do this, I get the errormessage: "The data has an insufficient number of columns. This graph type requires at least 2 columns of data. The data provided has one column.".
    When i add another dummy value to the arraylist:
    dummy dummya 1
    dummy dummyb 2
    the graph displays correctly, but only with a additional line for the dummy values, also in the Legend.
    What am i doing wrong. Surely it is possible to display just one line in the Graph??
    Any help is appreciated.
    Linda

    In the arraylist, setname identifies a column. By default, columns are plotted as groups, or different points along the horizontal axis. In order to have a line or area graph, you need two groups. The data that you are passing has 1 group and 3 series. You should pass it as follows:
    jan setname 12.2
    feb setname 14.5
    march setname 8.1
    etc.
    Passing data like this will give you three groups (jan, feb, march) and one series (setname).
    By the way, what version of BI Beans are you using and how did find out about setLocalRelationalData? That API was never publicly released. It was replaced by setTabularData (same method renamed) and exposed in 9.0.3.
    BI Beans Product Management

  • Chart Web Part to not plot zeros on a line graph

    Hi all,
    Is it possible to not plot zeros on a line graph?
    I have a line chart with days of the current month along the x-axis and a value on the y-axis. I have a series representing a forecast as a line that will show what the values along for the whole month should be and a second
    line chart series representing the actual. This tells the reader how the actual is tracking against the forecast. The data is based on an excel table.
    Currently when the latest value is set the line skews back to 0. I don't want this shown, I just want it left blank. On excel you can change the zeros to na() and the line graph will not plot, however, if I leave them as na() in the source data, the whole
    column wont be imported in the chart wizard.
    Any ideas?
    Thanks
    Andy

    It's true -- the RangeBar chart type only has two field options (X and Y) while the RangeColumn correctly has an addtional Y field. The RangeBar chart should obviously have two X fields if it's supposed to plot a range, as the name and example image indicate.
    Neither this thread or the one linked has led to an answer. Can this be fixed?

Maybe you are looking for

  • CDR by Outbound Dialed Number

    Hello, Is it possible to run a report on an outbound dialed number? I have been tasked to find how many times a number has been called. I normally did this with query analyzer with an if statement in older versions of CM but this is on UCM 8. Any hel

  • Adding users to roles in the new preview portal (new RBAC feature) does not work

    When I click the Invite Users/Add button for any of the 3 roles in the new preview portal, the page doesn't load and instead, it instantly redirects to an HTTP 520 error page. Can anyone please look into this and fix it? It's been this way since last

  • Problem with the database of BPM 10.3.1.0.0

    Hello, the BPM can not insert rows in the database, this problem is recent and I need to know how to optimize queries to avoid errors of type: A database transaction failed (the server tried it 1 of 1 times). The server will retry the database transa

  • Print issue in F.27...

    Hello, I am trying to print periodic account statement using F.27. I put the name of printer in Print Control but it just creates the spool in sp01. To print that I have to go to SP01 but the thing does not get printed via F.27. Please help as how ca

  • Is there a way to password protect my Ipod classic?

    Hi, I was just wondering if there is a way to password protect my Ipod Classic. I have some sensitive material on it that I don't want my little brother to have access to but i'm not sure how to hide these vids so nobody can find them....any suggesti