Moving an arrow image pointing to generated bar graph with 11 levels.

Hello all,
I am writing a JSP page in which i am rendering single bar graph image which has 11 levels, now depends on the value of the level which is coming from the database, i.e. 1-11, I have to point an arrow to that particular level. I need arrow image for this.
For level value 1, it should point to exact 1 on bar graph image.
How can I implement this in JSP?
Thanks,
Bhaskar

Instead of arrows, why don't you use some color coding as shown below ?
Message Edité par chilly charly le 09-01-2006 11:01 PM
Chilly Charly    (aka CC)
         E-List Master - Kudos glutton - Press the yellow button on the left...        
Attachments:
Color coding solution.png ‏26 KB

Similar Messages

  • Generating bar graphs

    i have to generate bar graphs in my project which i'm doing in JSP. i
    dont know how to generate a graph.i downloaded jfreegraph but dont
    know how to use it.can some one help me? or suggest any other tool

    use JFreeChart

  • Stacked Bar Graph with a line plotting count

    Hi everyone
    I am facing a problem with plotting a stacked bar graph with a line or dot for count.
    I have 2 y axes and one x-axes.
    Can anyone help out with suggestions as to how to do this in 9i Reports.
    Thanks
    Neelima

    The graph wizard in Reports 9i allows you to create a dual Y combination graph - is this not sufficient for your needs, or am I missing something?
    Danny

  • Combine a Bar Graph with a Line Graph!

    Is it possible to combine a Bar Graph with a Line Graph because occasionally we wish to use both bars and lines on the same plot.
    If yes, could you please give us a sample rtf file?
    Thanks,
    -Ritu

    Hi Tim,
    To be more clear, I need to superimpose the two graphs.
    For example,the first one shows the budget for each month along with the actual expenditures as a bar graph. The other shows the cumulative budget, forecast and costs for the entire project as a series of lines. The first graph uses the scale on the left side of the graph and the second graph uses the scale on the right side.
    Thanks,
    -Ritu

  • Generating Bar-code with barcode no.

    Hi Experts,
              my requirement is to generate bar-code for data from certain fields like material no,batch no, expiry date etc. Well i am
              able to generate the bar-code with the help of smart style but i am not getting any no below the generated bar-code as
              bar-code no. As i have come across that there are basically 2 types of bar-code no. 1) UPC   and   2) EAN
              Please help me in generation of bar-code with its no below (either in UPC   or   EAN )  type.
    Thanks.
    Praveen Kumar.

    Hi, Praveen,
    I am more a barcode expart than SAP expert.  Here is a link to an article that may be helpful:
    [Printing barcodes from SAP|http://www.makebarcode.com/info/appnote/app_024.html]
    You mentioned using UPC-A or EAN-13.  I recommend that you do not use these symbologies for general-purpose fields like material no,batch no, expiry date etc.  Both of these codes are fixed length, numeric only.  It will be much better if you use a variable-length, alpha-numeric symbol like Code 39 or Code 128.  Code 39 is the easiest to work with; Code 128 requires a little more work to set up your software, but it supports a wider range of characters (lower case, symbols, etc.). 
    Here is a link to a barcode comparison chart.  From there you can find details about these codes.
    [Barcode comparison chart|http://www.makebarcode.com/specs/barcodechart.html]
    Bob

  • To show the data from BI query in bar graph with thousand separator

    Hello Experts,
       I am using Visual composer 7.0.I have designed an application where i have user BI query to show data as a bar graph.I have roundoff the data to 2 places of decimal an i have to show the data with thosand separator as well.
    i am using the formula
    NVAL(NSTR(@Actual_value,"C.2"))
    Where @Actual_value is a value which comes from BI queryand is to be displayed as a bar graph.
    Points will be awarded for reply.
    Thanks ,
    Rakesh

    Hi Rakesh,
    I have found some links which may help you.
    http://help.sap.com/saphelp_nw70/helpdata/en/38/2d9b732beb4c68bba2962602a7d6bd/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/26/64fb472a144a0dbaf88f5ec75d9270/content.htm
    http://oregonstate.edu/dept/computing/warehouse/PDF/8-reports.pdf

  • 3D bar graph with time stamp on X-axis

    Hi all....I try to plot date data (first column in array)  to x axis in 3D bar graph follow by example in this link
    http://forums.ni.com/t5/LabVIEW/3D-bar-graph-issues-using-2D-Y-Z-plane-and-timestamp/td-p/1923027
    But I still do not succeed.
     I'll be glad if you had any suggestions that could help.
    Thank you
    HiN
    Attachments:
    xy_bar_graph Version 0.vi ‏21 KB

    Hi Jubchay,
    Here is an example of displaying the given timestamp. Only the 3D vision has the customized marker.
    The 3D Bar is not suitable to display a lot of bars, which make the marker overlapped. So I only input the subset of 15.
    Attachments:
    xy_bar_graph Version 1.vi ‏23 KB

  • Stacked Bar graph with multiple bars

    Hi,
    I want to have a graph where I will have multiple stacked BARs. Having single stacked bar is OK.
    Is there a way to achieve this ? I am using 11.1.1.2 ADF and ADFBC
    For Ex:
    You have
    -TV sales per month for different regions
    -DVD sales per month for different regions
    I want to have 2 stacked BARs one for TV and one for DVD. X axis will have the date ..
    Thanks

    From what i understand, i think you are looking Dual Y Bar graph.
    For more information, look into this documentation - http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12418/tagdoc/dvt_barGraph.html
    Thanks,
    Navaneeth

  • Replacing a point in a CW graph with a character (such as A,B,C,etc.).

    I am using Component Works with VB6 to replace data points with characters (A, B, etc.) on the CWGraph. I'm not looking to replace all data points with characters, but rather a way to label similiar to the "value pairs" feature used for the graph axis.

    The current version (3.0) of the CWGraph control does not support text on the plot area. In the next release of Measurement Studio, the graph will have annotations allowing you to put text strings on the plot area. It will be release in Q3 2001.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Bar Graph with multiple series

    I am trying to created some graphs in 10g reports. I want a graph that has 2 bars per group. On the layout tab I have column A and Column B on the bars line and Column C on the groups line. When I run the report Columns A and B show up as 1 bar on the graph. Where do you specify the values for series 1 and series 2?

    Hi,
    When you create a bar chart using a "group by" attribute, the resulting groups are displayed as stacked bars or as dual Y bars (shows the groups side by side).  The button in the chart's toolbar (with stacked bar chart icon) is used to change this presentation. You can display the data as it is, without aggregation, by using the line or scatter charts.  The line/scatter graphs should allow you to display multiple Y values (series), but there appears to be a bug that causes a single line to be displayed instead.  Multiple series bar charts and label renaming are not available in the current release.
    Thanks,
    Marat

  • Test please -- menus/CSS for arrow images

    Favour please. Could you kind folks see if the menus/subs now
    line up in
    your various browsers. I moved the arrow image to the left of
    the text
    and positions with CSS. It was the only way I could think of
    doing it
    although I now think I took away from its meaning. Appearance
    seems okay
    in Camino & Safari.
    http://yum.woodengems.com/2006/aTOCA.html

    > Favour please. Could you kind folks see if the
    menus/subs now line up in
    > your various browsers. I moved the arrow image to the
    left of the text
    > and positions with CSS. It was the only way I could
    think of doing it
    > although I now think I took away from its meaning.
    Appearance seems okay
    > in Camino & Safari.
    >
    >
    http://yum.woodengems.com/2006/aTOCA.html
    Looks the same to me on a win pc using FF and IE6. The arrows
    could do with
    moving down a pixel or two though... and yes, probably would
    be best on the
    right hand side ;-)
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    http://www.macromedia.com/devnet/dreamweaver/css.html
    - CSS Tutorials

  • Simple Bar Graph

    What I'm trying to do is make a simple bar graph, with multiple bars of different colors and do this using an array. I create a new bar, set its size and color, and then create another bar, set its size, color and i've also moved it over 10 pixels so its not ontop of the original bar. And I'm using an array for the ractangle shap, and fillrect to fill it.
    My problem comes when I add the object to the pane ( frame.getContentPane().add(blue); )
    It only adds the last one, it doesn't add the blue bar. does getContentPane repaint the screen or something, so that the previous one doesn't show? Or am I missing something?
    Thanks for any input,
    Bar Class
    import javax.swing.JPanel;
    import java.awt.*;
    public class Bar extends JPanel
       private int[] xBar = {25, 25, 30, 30};
       private int[] yBar = {350, 100, 100, 350};
         private Color fillColor;
       public Bar()
          setBackground(Color.black);
         public void setSize(int height)
              yBar[1] = height * 10;
              yBar[2] = height * 10;     
         public void changeColor(Color colour)
              fillColor = colour;
         public void moveOver(){
              for(int i = 0; i < xBar.length;i++)
                   xBar= xBar[i] + 10;
         // Draws the bar
    public void paintComponent(Graphics gc)
    super.paintComponent(gc);
    gc.setColor(fillColor);
    gc.fillPolygon(xBar, yBar, xBar.length); // draw bar
    BarChart classimport javax.swing.JFrame;
    import javax.swing.JPanel;
    import java.awt.*;
    public class BarChart
    // Creates the main frame of the program.
    public static void main(String[] args)
    JFrame frame = new JFrame("Bar Chart");
              Bar red = new Bar();
              Bar blue = new Bar();
              red.setSize(9);
              red.changeColor(Color.RED);
              blue.moveOver();
              blue.setSize(5);
              blue.changeColor(Color.BLUE);
    frame.getContentPane().add(blue);
    frame.getContentPane().add(red);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setVisible(true);
              frame.setSize(400,400);

    Ok, I've recreated the whole thing. And it seems to work well, my only problem now is that the graph seems to move on the x-coordinate randomly each time I recompile and run it. Any idea's on why it may do this? I had a friend look at it, and he said it seems to be calling the draw method multiple times, but I cant figure out how, or why it would even do that. So my question is, why is the graph shifting across the screen each time I compile it and run it?
    import javax.swing.JFrame;
    import java.io.*;
    public class BarGraphDriver
         public static void main(String[] args)
              int[] input = {5, 60, 20, 100};//Set height of each bar in the graph (number between 0 and 10
              JFrame frame = new JFrame("Bar Graph");
              BarPanel panel = new BarPanel(input);
          frame.getContentPane().add(panel);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.pack();
          frame.setVisible(true);     
              frame.setSize(600, 450);
    import javax.swing.JPanel;
    import java.awt.*;
    public class BarPanel extends JPanel
         Bar graph;
       //  Sets up the panel characteristics.
       public BarPanel(int[] values)
              JPanel panel = new JPanel();
              panel.setLayout(null);     
              graph = new Bar(values);     
          setBackground(Color.black);
       //  Draws the bar
         public void paintComponent(Graphics gc)
          super.paintComponent(gc);
              graph.draw(gc);
    import javax.swing.JPanel;
    import java.awt.*;
    public class Bar extends JPanel
       private int[] xBar = {10, 10, 60, 60};
       private int[] yBar = {300, 100, 100, 300};
         private int data[];
         private int origData[];
       public Bar( int initVal[] )
              data = new int[initVal.length];
              origData = new int[initVal.length];
              for(int i=0; i<initVal.length; i++)
                   origData[i] = initVal;          
                   data[i] = Math.abs(initVal[i] - 300);
    public void draw(Graphics gc)
              gc.setColor(Color.RED);
              gc.drawLine(10, 301, 600, 301);//horizontal redline
              gc.drawLine(10, 301, 10, 10);//vertical redline
              for(int h = 0; h<data.length; h++)
                   gc.setColor(Color.GRAY);
                   gc.drawLine(10, data[h] + 1, 600, data[h] + 1);//horizontal redline
              for (int i=0; i<data.length; i++) //countes each bar
                   for (int j=0; j<xBar.length; j++)
                        xBar[j] = xBar[j] + 60;          
                   if (data[i] >= 1 || data[i] < yBar.length)
                        for(int k = 1; k < 3; k++){
                             yBar[k] = data[i];
                   gc.setColor(Color.BLUE);
              gc.fillPolygon(xBar, yBar, yBar.length); // draw bar
                   int xText = xBar[0];
                   int yText = data[i] - 10;               
                   gc.setColor(Color.WHITE);
                   gc.drawString(" " + origData[i], xText, yText);     
    Edited by: mark2685 on Oct 31, 2008 12:10 PM
    Edited by: mark2685 on Oct 31, 2008 12:14 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • DEVLOPING BAR GRAPHS USING PERL..urgent

    Hi
    I want to do devlop bargraphs,pie charts for my project..i don't know perl..i want o devlop graphs dynamically..can any body tell me where will i get sample code to generate bar graphs dynamically...urgent.
    Thanks
    Anand

    It might be tough to do it in Perl, since Perl has no GUI. And you might want to ask the question in a Perl newsgroup. Or did you mean Java?
    There are lots of third party graphing APIs available in Java. Just search around.

  • Javascript won't recognize selected portion of bar graph

    Hi,
    I'm trying to write a script that will recognize a selected portion of a bar graph (selected with the direct-selection tool) and change its fill color. I have a working script that will recognize change the color of a selected box (i.e. one drawn with the Rectangle tool), but I get an error when I try to manipulate a selected piece of my graph.
    "Error 21: undefined is not an object"
    OK, then what is it? Is there any documentation that explains the hierarchy of items within a graph or how they are referenced? Or anyone out there figured it out? The Illustrator Scripting PDFs are less than clear on this point.
    This script is (hopefully) a building block for a later, larger script that would step through an entire graph, change the color of each bar, and save a copy before repeating the process with the next bar (basically I need a bunch of variations on one bar graph with a different data point highlighted in each). But that's not happening unless I can select the bars!
    Any ideas would be appreciated,
    Ted

    From looking at the graph item object this doesn't appear possible.
    Items within a graphItem do not show up as selected in JS.
    Looks like the only workaround that I can see would be to expand the graph item then work with the path elements.

  • Bar Charts with Non-Stacked Subgroups

    I'm trying to create a report in CR2008 for my elementary school principals that will display how many students received a specific grade each of the three marking periods (T1, T2, and T3) per grade level per subject area (Math, PE, etc.).  I was able to do this with a separate chart for each marking period, but would like to combine the charts into a single chart that has the grades (such as ADV, PRO, or BLB) across the bottom, and has the trimester scores as subgroups, so it looks something like this:
                   3    123     23   1     1
                  23    123    123   123   12
    Kinder Math  123    123    123   123   123    123
                 ADV    PRO+   PRO   APP   BASI   BLB
    Each of the grades would have three subgroups (bars) representing the three trimesters.  The y-axis scale would be the count of students who received each grade, with the maximum value set to the total number of active students at the end of the year (plus a small fudge factor in case the T3 enrollment is smaller than the T1 or T2 enrollment).
    The database (SQL Server 2005) I'm pulling from has table I'll call Grades; it's joined to a table called Students to get the grade level.  Each record in Grades has the following data in it (names have been changed to make them make more sense here, and only relevant fields are shown):
    StudentID, CourseNum, Section, T1_Active, T1_Grade, T2_Active, T2_Grade, T3_Active, T3_Grade
    If a student was enrolled in a specific CourseNum and Section at the end of a marking period, the XX_Active field will be "A"; if it's not, it should be skipped in the counting.  Because of this it is very possible that the count for a specific grade/trimester is zero, especially at the outliers (ADV and BLB).
    In Chart Expert >> Data >> Advanced, the current charts are set up using:
    On change of Grade.T1_Grade
    Show value(s): Count of Grade.T1_Grade
    (Substitute T2 or T3 for the second and third charts.)  Unfortunately, I have no clue what to choose for these values to get a combined chart.
    My questions:
    1) Does CR support bar graphs with subgroups that aren't stacked?  Does it support having three subgroups?
    2a) If so, what would be my next step to making this work?  Is the secret in running totals, formulas, arrays, or something else?  Maybe creating a view in the database that rearranges the data to make it easier to work with?
    2b) If CR doesn't support this directly, would it be worth while to fake it with six separate bar charts u2013 a chart just for ADV next to a chart just for PRO+, etc. u2013 or would the performance penalty be too much?  Would I need to have them each in their own subreport, or could they all live on the same level?  Is this the way I'd need to go if I also wanted to put trend lines over or above each letter grade group?
    Thank you in advance for any pointers you can give me.
    Jim
    Edited by: jimsteph on Jul 8, 2010 2:33 PM

    If you can create a view, that would be very helpful, by making the view, you are pushing some of the work to the
    server, so... "Hopefully" the report will be quicker. I don't think making six seperate charts would be all that much load on the
    server, or cr. If you do that, would you stack the charts? and just make the top stacks with Transparent backgrounds?
    Rather than add a view on the server u2013 there's talk that the next version of the gradebook program will completely refactor the database u2013 I did a SQL Command (I can't remember where I read about that tip over the last couple of feverish days, but my hat's off and I owe someone a frosty adult beverage!) that created a simplified table.  I then used that to create a Cross-Tab (my original report approximated one using a whole bunch of Running Totals).
    I then tried to make the chart, and got completely frustrated u2013 again u2013 until I accidentally created a chart from the Cross-Tab (right-click on the Cross-Tab and choose Insert Chart ).  I had no idea you could do that, and it ended up being exactly what I wanted.
    I have CRXI, if you go to the Sample reports, you will see one called Chart.rpt, this has multiple examples of some of the
    charts you can create. Perhaps a 3D riser chart would meet your requirements. HTH If not, can you provide some different samples?
    I would have never thought to look for the samples.  Thank you!  Now that I've got my immediate problem solved it's time to look at the samples and see what possibilities exist for future reports.
    Jim

Maybe you are looking for

  • HP Officejet Pro L7590 shows offline but has valid IP

    I have a new internet provider and have changed the position of the router in my house. The printer was working perfect and was connected with an ethernet cable Now the printer reports to be off line but is accessible throught the IP address. New ins

  • Can't Dual-Boot Win7 from Bootable USB

    I have a USB that's been formatted correctly by Bootcamp Assistant, and a mounted .iso of Windows 7 on it. I've downloaded all of the support programs that Bootcamp offered, and partitioned the hard drive the same way. I'm currently running OSX 10.7.

  • Ajax submit failed: error =403, Forbidden error when signing in

    when trying to log in or create a new account for www.eprintcenter.com this is the error I get, and I can't get past the log in page.

  • Valuated Stock Value differs - Urgent !!!

    Hi All, The valuated stock value in R/3 and BW differs. We are using the standard business content for the inventory report which are the 3 datasources 2LIS_03_BX, 2LIS_03_BF, 2LIS_03_UM & Infocube 0IC_C03... When the query is executed the backward c

  • How to smooth edges?

    Hi all, I am in hopes that someone can tell me how to smooth the edges of the numbers in the attached image? Thanks for any advice, hints. etc.