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);    
}

Similar Messages

  • 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

  • Help creating a simple line graph

    Hi
    Im very new to the Java language, yet have some background knowledge of C and C++.
    i have a problem with an application i am developing for a university assignment, the program is to simply simulate a water pressured nuclear reaction. the main JFrame holds various JLabels that show the current core temperature, electricity produced etc. But i want to add a very simplistic line graph to the same window, it is to purely show a line that updates (no axis or labels). The graph is to illustrate how much electricity was produced on the current cycle of the reactor, the user can initiate each cycle by pressing a JButton.
    i have found some info on drawing, but cannot find anything that helps.
    Any info on how to do this (its only meant to be a samllish part of the main window), any code examples or sites that have a very relevant tutorial would be appreciated.
    Sorry for the length of this, and if anyone needs any more info on this then let me know.
    thanks

    Cross posted,
    http://forum.java.sun.com/thread.jsp?forum=54&thread=394494&tstart=0&trange=15

  • Reg Exp help needed (trouble with line breaks)

    Hello,
    I am attempting to parse a line of text with regular expressions. I am having difficulty with the line breaks.
    I want to divide the following line by the first '\n' char.
    For instance, I wan the output to be as follows:
    found 1: one
    found 2: ddd
    dddHowever, I get the following with my attached code:
    found 1: one
    found 2: dddHowever, the second line break seems to be the end of the second group.
    How do I get the any character '.' to read past any subsequent line breaks?
    import java.util.regex.*;
    public class Test
         String rawSequenceArg = ">one\nddd\nddd";     
           Pattern p = Pattern.compile(">([^\n]+)\n(.+)");
           Matcher m = p.matcher(rawSequenceArg);
           if(m.find())
                System.out.println("found 1: " + m.group(1));
                System.out.println("found 2: " + m.group(2));
    }

    In this case, the DOTALL flag is the one you need; it allows the dot (period, full stop) to match line separator characters. MULTILINE makes the '^' and '$' anchors match the beginning and end of logical lines, instead of just the beginning and end of the input.

  • Help needed! White lines over uncompressed avi export - CS4 v4.2

    Hello,
    I am having problems exporting an uncompressed avi at max bit depth in Premiere Pro CS4. Whenever I export it, I get what is below. Please look at the image to get an idea of what it looks like. The quality is there, just the white lines are annoying.
    http://i213.photobucket.com/albums/cc291/madindehead/PremierePro_export_weird.png
    However, when exporting as an uncompressed avi with 8 bit bit depth, the quality is worse, but there are no white lines. I am using the UYVY codec. As you can see, the quality of the export is excellent, but it is spoiled by those lines. Does anyone know what could be causing it, and how can I fix it? I don't really want to use 8 bit depth, as the quality is nowhere near as good sadly.
    Thanks.

    I tried looking here: http://forums.adobe.com/message/2105977#2105977
    Which led me to encoding the video with VirtualDub, using a lossless codec, and then re-exporting it from Premiere. However, exactly the same thing happened. I have found, that using Uncompressed Microsoft AVI, with Render at maximum depth selected and using the UYVY codec, definitely gives the best quality. If I un-tick "Render at maximum depth" the problem DOES NOT occur, however, the quality is nowhere near as good. So I think this is where the problem lies. You can see under that white layer, that the quality is there. But still no joy sadly.
    I am using StaxRip to encode the files as MP4 using the x264 codec, and this gives excellent quality, for the file size. As I am using this, I obviously want the highest quality output from Premiere that I can possibly get.

  • Help needed with Scatter Graphs

    Hi,
    I have a requirement wherein I need to plot a graph with <b>X-Axis</b> as the <b>months of  a year in text format(eg:Apr,May...)</b> and <b>Y-Axis</b> as the <b>sales data for the corresponding month</b> for <b>n no. of years</b> . This data will be fetched from an RFC . As far as I know , I need to use a <b>Time-Scatter Graph</b> .Can anyone please guide me on how to go about this . Any help will be highly appreciated and suitably rewarded with points.
    Regards,
       Tahzeeb

    Hi tahzeeb,
                      Hope this will help
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/9a/a04d29a6d611d2960500a0c9308b1f/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/9a/a04d29a6d611d2960500a0c9308b1f/frameset.htm</a>
    regards
    Sumit

  • Line graphs in ALV report

    I need to plot a graph in which i have material number on the X-Axis and no. of days on the Y-axis.And i need to plot more than one graph using the same X and Y axis.How do i do that? please help...

    Hi,
    Check the link for process and sample code
    Graphs in ALV
    Regards,
    anirban

  • Including scaling information in binary file, which can be plotted in graph

    I need to plot a graph from a from a bin file, I am able to plot the graph using read binary file vi but the scaling is nowhere close to what it needs to be.
    Its in auto scaling mode, if I set the values manually by giving maximum and minimum values the graph disappears,
    I believe it has something to do with some missing header file not included in the binary file as of now.
    Can anyone help , I need to know , how to add header in the binary file so that I include the information of scales or units of measurements of the data which has to be plotted.

    Hi Shrikant,
    you include "header information" the same way as you include "data" in your binary file: You simply write that information to the file...
    When trying to plot "the file" you read both parts (header and data), one after the other!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Help needed in swing!urgently!

    Hi im new to java envirnoment.Im working on a project,i need to design a tutorial page.
    How do i write a program for asking user to input values for a matrix form? how to i design the page for this?
    How do i invoke a Japplet?Is it the same procedure as a awt applet?For awt applet,a html file is written inorder to invoke the program. so how about Japplets or more generally for swing components?
    Is there any reference for new users in the designing of user interface components.I need to bulid a simple one,with buttons,scroll.
    Anyone knows how to plot line graphs??

    Have a loo at the Java Tutorial:
    http://java.sun.com/docs/books/tutorial/
    and the Book "Java Look and Feel Design Guidelines":
    http://java.sun.com/products/jlf/ed2/book/index.html
    -Puce

  • How do I make a line graph that shows temperature readings taken on specific dates?

    I need to make a chart of my wife's temperatures taken via ovulation thermometer. All I need is a line graph that shows the temperatures on the y axis and the dates the measurements were taken on the x axis.
    What is the easiest way to do this? Please explain in detail as I have almost no knowledge regarding Numbers. Thanks.

    You can construct a Line graph or a Scatter graph to display this.
    The two are similar, but require the data to be set up differently.
    A Line graph is a Category graph.
    Each 'date' is a text value that names a category. The categories are equally spaced along the category axis. Measurements taken on day 1, day 2 and day 4 would be equally spaced with respect to the category axis.
    Each temperature reading is a numerical value, and is represented on the graph by the distance it is placed from (and usually above) the category axis.
    A Scatter graph has two value axes.
    Each Date is a Date and Time value. The position of these values depends on the value itself. Measurements taken on February 1, February 2 and February 4 wound not be equally spaced. Along the Date axis, the space between the second and third dates would be twice as wide as that between the first and second cates.
    Each temperature reading is a numerical value, and is represented on the graph in the same manner as in the Line graph.
    Here's an example of each, using the same data set.
    For the Line graph (left), the Category labels (dates) are placed in a Header column, and the temperatures in a non-header column,
    For the Scatter graph, both the dates and the temperatures are in non-header columns. The Chart Inspector was used to Connect the data points with straight line segments, and the weight of these lines (and size of the data point markers) was increased to more closely match the weights and sizes in the Line graph.
    Data on the graphs is not intended to have any similarity to temperatures measured for your purposes.
    The construct the line graph:
    Set up the data and labels as described.
    Select the cells containing the data (column B in my case).
    Click the Chart button and choose the Line Chart.
    To construct the scatter chart:
    Set up the data as described.
    Select the cells containing the date and temperature data (columns A and B for mine)
    Click the Chart button, and select the Scatter Chart button (third from the bottom),
    In the Chart inspector, click the Series button, then set the Connection Points menu to Straight. Change the Data Point size yo 15.
    Click anywhere on the line to select it, then in the Stroke section of the Format bar, set the line weight to 4 points.
    Click on the box containing the dates (under the chart), then click the ruler icon in the Inspector to show the metrics inspector. Use the Rotate control to set the angle for the dates to about 75°.
    Click on the label for this axis (Dates) and drag it to a position below the date labels.
    Regards,
    Barry

  • Need Help with creating Line Graph Chart

    I have the following XML Data
    <DATA>
    <PERCENT_ROW>
    <YEAR>2007</YEAR>
    <PERIOD>3</PERIOD>
    <MATERIAL_TYPE>C</MATERIAL_TYPE>
    <BRANCHDESC>Longview</BRANCHDESC>
    <LOCATION>30</LOCATION>
    <QUARTERDESC>Quarter 1</QUARTERDESC>
    <CURRPERIOD>Mar 2007</CURRPERIOD>
    <VALUECURRENTPERIOD>99.9</VALUECURRENTPERIOD>
    <QUARTERVALUE>100</QUARTERVALUE>
    <YTDVALUE>100</YTDVALUE>
    <STDCURRENTPERIOD>99.2</STDCURRENTPERIOD>
    <VARIANCE_STD>-.7</VARIANCE_STD>
    <VARIANCE_STD_PERCENT>-.7</VARIANCE_STD_PERCENT>
    <CURRENT_12MMA>99.97</CURRENT_12MMA>
    <PRIOR_12MMA>0</PRIOR_12MMA>
    <CURRPERSUB1>Feb 2007</CURRPERSUB1>
    <VALUECURRENTPERIODSUB1>100</VALUECURRENTPERIODSUB1>
    <CURRPERSUB2>Jan 2007</CURRPERSUB2>
    <VALUECURRENTPERIODSUB2>100</VALUECURRENTPERIODSUB2>
    <CURRPERSUB3>Dec 2006</CURRPERSUB3>
    <VALUECURRENTPERIODSUB3>0</VALUECURRENTPERIODSUB3>
    <CURRPERSUB4>Nov 2006</CURRPERSUB4>
    <VALUECURRENTPERIODSUB4>0</VALUECURRENTPERIODSUB4>
    <CURRPERSUB5>Oct 2006</CURRPERSUB5>
    <VALUECURRENTPERIODSUB5>0</VALUECURRENTPERIODSUB5>
    <CURRPERSUB6>Sep 2006</CURRPERSUB6>
    <VALUECURRENTPERIODSUB6>0</VALUECURRENTPERIODSUB6>
    <CURRPERSUB7>Aug 2006</CURRPERSUB7>
    <VALUECURRENTPERIODSUB7>0</VALUECURRENTPERIODSUB7>
    <CURRPERSUB8>Jul 2006</CURRPERSUB8>
    <VALUECURRENTPERIODSUB8>0</VALUECURRENTPERIODSUB8>
    <CURRPERSUB9>Jun 2006</CURRPERSUB9>
    <VALUECURRENTPERIODSUB9>0</VALUECURRENTPERIODSUB9>
    <CURRPERSUB10>May 2006</CURRPERSUB10>
    <VALUECURRENTPERIODSUB10>0</VALUECURRENTPERIODSUB10>
    <CURRPERSUB11>Apr 2006</CURRPERSUB11>
    <VALUECURRENTPERIODSUB11>0</VALUECURRENTPERIODSUB11>
    </PERCENT_ROW>
    <PERCENT_ROW>
    <YEAR>2007</YEAR>
    <PERIOD>3</PERIOD>
    <MATERIAL_TYPE>C</MATERIAL_TYPE>
    <BRANCHDESC>Oakland</BRANCHDESC>
    <LOCATION>31</LOCATION>
    <QUARTERDESC>Quarter 1</QUARTERDESC>
    <CURRPERIOD>Mar 2007</CURRPERIOD>
    <VALUECURRENTPERIOD>100</VALUECURRENTPERIOD>
    <QUARTERVALUE>100</QUARTERVALUE>
    <YTDVALUE>100</YTDVALUE>
    <STDCURRENTPERIOD>100</STDCURRENTPERIOD>
    <VARIANCE_STD>0</VARIANCE_STD>
    <VARIANCE_STD_PERCENT>0</VARIANCE_STD_PERCENT>
    <CURRENT_12MMA>100</CURRENT_12MMA>
    <PRIOR_12MMA>0</PRIOR_12MMA>
    <CURRPERSUB1>Feb 2007</CURRPERSUB1>
    <VALUECURRENTPERIODSUB1>100</VALUECURRENTPERIODSUB1>
    <CURRPERSUB2>Jan 2007</CURRPERSUB2>
    <VALUECURRENTPERIODSUB2>100</VALUECURRENTPERIODSUB2>
    <CURRPERSUB3>Dec 2006</CURRPERSUB3>
    <VALUECURRENTPERIODSUB3>0</VALUECURRENTPERIODSUB3>
    <CURRPERSUB4>Nov 2006</CURRPERSUB4>
    <VALUECURRENTPERIODSUB4>0</VALUECURRENTPERIODSUB4>
    <CURRPERSUB5>Oct 2006</CURRPERSUB5>
    <VALUECURRENTPERIODSUB5>0</VALUECURRENTPERIODSUB5>
    <CURRPERSUB6>Sep 2006</CURRPERSUB6>
    <VALUECURRENTPERIODSUB6>0</VALUECURRENTPERIODSUB6>
    <CURRPERSUB7>Aug 2006</CURRPERSUB7>
    <VALUECURRENTPERIODSUB7>0</VALUECURRENTPERIODSUB7>
    <CURRPERSUB8>Jul 2006</CURRPERSUB8>
    <VALUECURRENTPERIODSUB8>0</VALUECURRENTPERIODSUB8>
    <CURRPERSUB9>Jun 2006</CURRPERSUB9>
    <VALUECURRENTPERIODSUB9>0</VALUECURRENTPERIODSUB9>
    <CURRPERSUB10>May 2006</CURRPERSUB10>
    <VALUECURRENTPERIODSUB10>0</VALUECURRENTPERIODSUB10>
    <CURRPERSUB11>Apr 2006</CURRPERSUB11>
    <VALUECURRENTPERIODSUB11>0</VALUECURRENTPERIODSUB11>
    </PERCENT_ROW>
    <PERCENT_ROW>
    <YEAR>2007</YEAR>
    <PERIOD>3</PERIOD>
    <MATERIAL_TYPE>C</MATERIAL_TYPE>
    <BRANCHDESC>Seattle</BRANCHDESC>
    <LOCATION>32</LOCATION>
    <QUARTERDESC>Quarter 1</QUARTERDESC>
    <CURRPERIOD>Mar 2007</CURRPERIOD>
    <VALUECURRENTPERIOD>12.4</VALUECURRENTPERIOD>
    <QUARTERVALUE>18.7</QUARTERVALUE>
    <YTDVALUE>18.7</YTDVALUE>
    <STDCURRENTPERIOD>-2527.7</STDCURRENTPERIOD>
    <VARIANCE_STD>-2540.1</VARIANCE_STD>
    <VARIANCE_STD_PERCENT>100.5</VARIANCE_STD_PERCENT>
    <CURRENT_12MMA>18.7</CURRENT_12MMA>
    <PRIOR_12MMA>0</PRIOR_12MMA>
    <CURRPERSUB1>Feb 2007</CURRPERSUB1>
    <VALUECURRENTPERIODSUB1>37.2</VALUECURRENTPERIODSUB1>
    <CURRPERSUB2>Jan 2007</CURRPERSUB2>
    <VALUECURRENTPERIODSUB2>6.5</VALUECURRENTPERIODSUB2>
    <CURRPERSUB3>Dec 2006</CURRPERSUB3>
    <VALUECURRENTPERIODSUB3>0</VALUECURRENTPERIODSUB3>
    <CURRPERSUB4>Nov 2006</CURRPERSUB4>
    <VALUECURRENTPERIODSUB4>0</VALUECURRENTPERIODSUB4>
    <CURRPERSUB5>Oct 2006</CURRPERSUB5>
    <VALUECURRENTPERIODSUB5>0</VALUECURRENTPERIODSUB5>
    <CURRPERSUB6>Sep 2006</CURRPERSUB6>
    <VALUECURRENTPERIODSUB6>0</VALUECURRENTPERIODSUB6>
    <CURRPERSUB7>Aug 2006</CURRPERSUB7>
    <VALUECURRENTPERIODSUB7>0</VALUECURRENTPERIODSUB7>
    <CURRPERSUB8>Jul 2006</CURRPERSUB8>
    <VALUECURRENTPERIODSUB8>0</VALUECURRENTPERIODSUB8>
    <CURRPERSUB9>Jun 2006</CURRPERSUB9>
    <VALUECURRENTPERIODSUB9>0</VALUECURRENTPERIODSUB9>
    <CURRPERSUB10>May 2006</CURRPERSUB10>
    <VALUECURRENTPERIODSUB10>0</VALUECURRENTPERIODSUB10>
    <CURRPERSUB11>Apr 2006</CURRPERSUB11>
    <VALUECURRENTPERIODSUB11>0</VALUECURRENTPERIODSUB11>
    </PERCENT_ROW>
    <PERCENT_ROW>
    <YEAR>2007</YEAR>
    <PERIOD>3</PERIOD>
    <MATERIAL_TYPE>C</MATERIAL_TYPE>
    <BRANCHDESC>Yakima</BRANCHDESC>
    <LOCATION>33</LOCATION>
    <QUARTERDESC>Quarter 1</QUARTERDESC>
    <CURRPERIOD>Mar 2007</CURRPERIOD>
    <VALUECURRENTPERIOD>36.4</VALUECURRENTPERIOD>
    <QUARTERVALUE>68.2</QUARTERVALUE>
    <YTDVALUE>68.2</YTDVALUE>
    <STDCURRENTPERIOD>-5517.2</STDCURRENTPERIOD>
    <VARIANCE_STD>-5553.6</VARIANCE_STD>
    <VARIANCE_STD_PERCENT>100.7</VARIANCE_STD_PERCENT>
    <CURRENT_12MMA>68.17</CURRENT_12MMA>
    <PRIOR_12MMA>0</PRIOR_12MMA>
    <CURRPERSUB1>Feb 2007</CURRPERSUB1>
    <VALUECURRENTPERIODSUB1>68.6</VALUECURRENTPERIODSUB1>
    <CURRPERSUB2>Jan 2007</CURRPERSUB2>
    <VALUECURRENTPERIODSUB2>99.5</VALUECURRENTPERIODSUB2>
    <CURRPERSUB3>Dec 2006</CURRPERSUB3>
    <VALUECURRENTPERIODSUB3>0</VALUECURRENTPERIODSUB3>
    <CURRPERSUB4>Nov 2006</CURRPERSUB4>
    <VALUECURRENTPERIODSUB4>0</VALUECURRENTPERIODSUB4>
    <CURRPERSUB5>Oct 2006</CURRPERSUB5>
    <VALUECURRENTPERIODSUB5>0</VALUECURRENTPERIODSUB5>
    <CURRPERSUB6>Sep 2006</CURRPERSUB6>
    <VALUECURRENTPERIODSUB6>0</VALUECURRENTPERIODSUB6>
    <CURRPERSUB7>Aug 2006</CURRPERSUB7>
    <VALUECURRENTPERIODSUB7>0</VALUECURRENTPERIODSUB7>
    <CURRPERSUB8>Jul 2006</CURRPERSUB8>
    <VALUECURRENTPERIODSUB8>0</VALUECURRENTPERIODSUB8>
    <CURRPERSUB9>Jun 2006</CURRPERSUB9>
    <VALUECURRENTPERIODSUB9>0</VALUECURRENTPERIODSUB9>
    <CURRPERSUB10>May 2006</CURRPERSUB10>
    <VALUECURRENTPERIODSUB10>0</VALUECURRENTPERIODSUB10>
    <CURRPERSUB11>Apr 2006</CURRPERSUB11>
    <VALUECURRENTPERIODSUB11>0</VALUECURRENTPERIODSUB11>
    </PERCENT_ROW>
    <PERCENT_ROW>
    <YEAR>2007</YEAR>
    <PERIOD>3</PERIOD>
    <MATERIAL_TYPE>C</MATERIAL_TYPE>
    <BRANCHDESC>Twin Falls</BRANCHDESC>
    <LOCATION>34</LOCATION>
    <QUARTERDESC>Quarter 1</QUARTERDESC>
    <CURRPERIOD>Mar 2007</CURRPERIOD>
    <VALUECURRENTPERIOD>100</VALUECURRENTPERIOD>
    <QUARTERVALUE>99.8</QUARTERVALUE>
    <YTDVALUE>99.8</YTDVALUE>
    <STDCURRENTPERIOD>100</STDCURRENTPERIOD>
    <VARIANCE_STD>0</VARIANCE_STD>
    <VARIANCE_STD_PERCENT>0</VARIANCE_STD_PERCENT>
    <CURRENT_12MMA>99.8</CURRENT_12MMA>
    <PRIOR_12MMA>0</PRIOR_12MMA>
    <CURRPERSUB1>Feb 2007</CURRPERSUB1>
    <VALUECURRENTPERIODSUB1>99.4</VALUECURRENTPERIODSUB1>
    <CURRPERSUB2>Jan 2007</CURRPERSUB2>
    <VALUECURRENTPERIODSUB2>100</VALUECURRENTPERIODSUB2>
    <CURRPERSUB3>Dec 2006</CURRPERSUB3>
    <VALUECURRENTPERIODSUB3>0</VALUECURRENTPERIODSUB3>
    <CURRPERSUB4>Nov 2006</CURRPERSUB4>
    <VALUECURRENTPERIODSUB4>0</VALUECURRENTPERIODSUB4>
    <CURRPERSUB5>Oct 2006</CURRPERSUB5>
    <VALUECURRENTPERIODSUB5>0</VALUECURRENTPERIODSUB5>
    <CURRPERSUB6>Sep 2006</CURRPERSUB6>
    <VALUECURRENTPERIODSUB6>0</VALUECURRENTPERIODSUB6>
    <CURRPERSUB7>Aug 2006</CURRPERSUB7>
    <VALUECURRENTPERIODSUB7>0</VALUECURRENTPERIODSUB7>
    <CURRPERSUB8>Jul 2006</CURRPERSUB8>
    <VALUECURRENTPERIODSUB8>0</VALUECURRENTPERIODSUB8>
    <CURRPERSUB9>Jun 2006</CURRPERSUB9>
    <VALUECURRENTPERIODSUB9>0</VALUECURRENTPERIODSUB9>
    <CURRPERSUB10>May 2006</CURRPERSUB10>
    <VALUECURRENTPERIODSUB10>0</VALUECURRENTPERIODSUB10>
    <CURRPERSUB11>Apr 2006</CURRPERSUB11>
    <VALUECURRENTPERIODSUB11>0</VALUECURRENTPERIODSUB11>
    </PERCENT_ROW>
    <PERCENT_ROW>
    <YEAR>2007</YEAR>
    <PERIOD>3</PERIOD>
    <MATERIAL_TYPE>C</MATERIAL_TYPE>
    <BRANCHDESC>Spanish Fork</BRANCHDESC>
    <LOCATION>35</LOCATION>
    <QUARTERDESC>Quarter 1</QUARTERDESC>
    <CURRPERIOD>Mar 2007</CURRPERIOD>
    <VALUECURRENTPERIOD>7.7</VALUECURRENTPERIOD>
    <QUARTERVALUE>10.2</QUARTERVALUE>
    <YTDVALUE>10.2</YTDVALUE>
    <STDCURRENTPERIOD>-6016.2</STDCURRENTPERIOD>
    <VARIANCE_STD>-6023.9</VARIANCE_STD>
    <VARIANCE_STD_PERCENT>100.1</VARIANCE_STD_PERCENT>
    <CURRENT_12MMA>10.23</CURRENT_12MMA>
    <PRIOR_12MMA>0</PRIOR_12MMA>
    <CURRPERSUB1>Feb 2007</CURRPERSUB1>
    <VALUECURRENTPERIODSUB1>14.9</VALUECURRENTPERIODSUB1>
    <CURRPERSUB2>Jan 2007</CURRPERSUB2>
    <VALUECURRENTPERIODSUB2>8.1</VALUECURRENTPERIODSUB2>
    <CURRPERSUB3>Dec 2006</CURRPERSUB3>
    <VALUECURRENTPERIODSUB3>0</VALUECURRENTPERIODSUB3>
    <CURRPERSUB4>Nov 2006</CURRPERSUB4>
    <VALUECURRENTPERIODSUB4>0</VALUECURRENTPERIODSUB4>
    <CURRPERSUB5>Oct 2006</CURRPERSUB5>
    <VALUECURRENTPERIODSUB5>0</VALUECURRENTPERIODSUB5>
    <CURRPERSUB6>Sep 2006</CURRPERSUB6>
    <VALUECURRENTPERIODSUB6>0</VALUECURRENTPERIODSUB6>
    <CURRPERSUB7>Aug 2006</CURRPERSUB7>
    <VALUECURRENTPERIODSUB7>0</VALUECURRENTPERIODSUB7>
    <CURRPERSUB8>Jul 2006</CURRPERSUB8>
    <VALUECURRENTPERIODSUB8>0</VALUECURRENTPERIODSUB8>
    <CURRPERSUB9>Jun 2006</CURRPERSUB9>
    <VALUECURRENTPERIODSUB9>0</VALUECURRENTPERIODSUB9>
    <CURRPERSUB10>May 2006</CURRPERSUB10>
    <VALUECURRENTPERIODSUB10>0</VALUECURRENTPERIODSUB10>
    <CURRPERSUB11>Apr 2006</CURRPERSUB11>
    <VALUECURRENTPERIODSUB11>0</VALUECURRENTPERIODSUB11>
    </PERCENT_ROW>
    </DATA>
    Note that each Branch_Desc has 12 periods called CURRPERIOD,CURPERSUB1,CURPERSUB2 ...... and 12 values for those periods as VALUECURRENTPERIOD, VALUECURRENTPERIODSUB1, VALUECURRENTPERIODSUB2......
    I need to create a Line Graph for each Branch for the 12 periods as defined above where VALUECURRENTPERIOD, VALUECURRENTPERIODSUB1 etc. are the values for that period. The current BIPublisher Chart tool only allows one Value and One Label. In my case I have 12 VALUES (VALUECURRENTPERIOD etc.) and 12 LABELS (CURRPERIOD, CURPERSUB1 etc.). The SERIES or LEGEND should be the Branch Desc . So what I am looking for is to plot values(12 values) for 6 branches (so six lines) over a period of time (12 periods).

    Hi Tim,
    We have this XML data calculated from several tables where the layout was in the format of One account(a Branch in this case) and 12 periodic values for the same . So reformatting the XML is not going to be easy as the source data is like this itself. I tried un-pivioting the table (as this one is already pivoted) but it looks like Oracle doesn't support this feature yet, but is suported in DB2 or SQL. Please take a look at this link
    http://blogs.ittoolbox.com/database/technology/archives/unpivot-query-12798?close=true
    So I am stuck with the data in this format and users want a line graph for each branch over he period of time. May be somone on this forum can figure out how to un-pivot a table in Oracle. Thanks for your help in advance.

  • 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

  • CR 9 - Need HELP Setting Line Graph colors in the Chart Expert

    Post Author: desselle
    CA Forum: Charts and Graphs
    Hello,
    I created a Crystal Report (CR) based off 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 corresponds to the .TTX file, and the parameters .  The report contains a Line graph that plots five pieces of data.  The report & graph work good.  The Problem: 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.  Are there some Hot Fixes that I need to apply to my copy of CR?
    Thanks

    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

  • Help please, I need a line graph from a chart with existing data.

    I am trying to put together a form for tracking my weaight loss. I have decided on a format that I like, but I can't figure out how to create a line graph to represent the chart that collects the data. The graph will need to begin with the "start weight" and track all chages throught the 42 cells until the final "net loss."
    Does anyone know how to set this up as a line graph? Your help would be much appreciated, thank you in advance.

    Skipping ahead and assuming I picked the correct direction then i have a possible solution:
    You need to get the weight loss numbers into a single column. If the table of 42 cells is called Table 1 and the table with the start weight is Table 2 and we call our new table Table 5:
    Cell B2 of Table 5 = Table 2::A2
    Cell B3 of Table 5 =B2+OFFSET(Table 1 :: $B$2,MOD(ROW()-3,7),QUOTIENT(ROW()-3,7))
    Fill down with that formula

  • I need to plot the Least Squares Regression Line (not just calculate it with the LINEST function).  How?

    I need to plot the Least Squares Regression Line (not just calculate its values with the LINEST function).  Can anyone advise me on how to graph this line?

      Grapher.app in OS X Utilities is excellent for that : entering data from Numbers Excel etc. into a Grapher "Point Set", plotting all your data, computing and plotting a regression curve linear or exponential or polynomial.
      Unfortunately there is not a single word about point sets and regression in the Grapher Help.
    So, suggest you download (free) "Instruction for Use - Grapher on web site
    http://y.barois.free.fr/grapher/Documentation.html
    and go to page 31 to 37, "Initiation > Lesson 6 : Treating a point set (Regression curve), and also page 68, "Appendix 1. Points sets : from speadsheets to Grapher".
      If you try Grapher's regression curves, please tell us about the manual above : useful or not, too easy or difficult, readable or not etc.
      Thank you.
    YB24
    PS. Documentation about Grapher is also here : Google "Apple Grapher" > http://en.wikipedia.org/wiki/Grapher > Article > Talk > Grapher 1.1 to 2.3 (French and English) (11th september 2012)

Maybe you are looking for

  • Error message when downloading Creative Cloud

    My computer keeps telling me I need to download Creative Cloud, when I do, I get this error message. "creative cloud is needed to resolve this problem, however it is missing or damaged, please download and try again' So I re-install and re-download o

  • HT2688 how to transfert my purchased music to another account?

    I changed my itunes account to my wife account because we want to use icloud to have the same music when we change device. Is it possible to transfert my music in her account. Luc

  • Slow performance of report with Cal year

    Experts,   Hope all is OK . We have  BW appraisal reports, one of which is Appraisal markings by grade report having Calendar year as selection variable. If I run this report with calendar year as selection parameter , this reports is taking very ver

  • PhotoShop Elements 4 on my new 64bit computer running Windows 7?

    I am quite happy running Photoshop  Elements 4 on my exsisting 32bit computer with Win XP, but will it be compatable with my new 64 bit computer running Windows 7? If the answer is no then what will be the easiest and most cost efficient solution so

  • EQUIPMENT_UPDATE VS ITOB_EQUIPMENT_MODIFY_SINGLE

    Hi All, There is requirement to update the single field (TYPBZ) in the equipment master using program. I can do this task using FM either EQUIPMENT_UPDATE or ITOB_EQUIPMENT_MODIFY_SINGLE. I wanted to know which FM I should use. I am getting correct r