A bar graph problem

hi all,
sorry if my question is not clear, try my best to describe.
i currently creating a bar graph applet, where this applet take different "group" of data / value, e.g. (68, 268,2680, 28 and 8). and here the maximum value is 2680, other group may NOT so. so for being the bar graph display, i have an applet that has a "fixed" maximum width of 700, i need my bar graph to have only 10 columns and also i need to minus out 10 from each column for other purposes, so i take (700 / 10) - 10 = 60, but here come the real problem, if i take 268 * 60 = 16080, that is incorrect! That is i know that i had to divide the 700 with 1000, because (700 / 1000) - (10 / 1000) = 0.69, then 268 * 0.69 = 184.92, that seem OK! but, but it still ran out of the expected result, the bar width will be much more shorter than expected (only those higher data value), why? my code will be as follow:
   if (highestWidth >= 1001)
      maxDetector = 10000;
   else if (highestWidth >= 101)
       maxDetector = 1000;
   else if (highestWidth >= 11)
       maxDetector = 100;
   else
       maxDetector = 10;
   maxSingleWidth = (axisPanel.getWidth() / maxDetector) - (10 / (maxDetector / 10));so, at for loop:
for (i=0; i <= 9; i++){
   barPanel.setBounds(x, y, (dataValue * maxSingleWidth), height);
any help will be very very much appreciated!!!

import java.awt.*;
import java.awt.event.*;
import java.awt.font.*;
import java.awt.geom.*;
import java.text.NumberFormat;
import javax.swing.*;
public class BarGraph
    public BarGraph()
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(new BarGraphPanel());
        f.setSize(400,400);
        f.setLocation(200,200);
        f.setVisible(true);
    public static void main(String[] args)
        new BarGraph();
class BarGraphPanel extends JPanel
    int[] data;
    int maxValue;
    Font font;
    NumberFormat nf;
    final int PAD = 40;
    public BarGraphPanel()
        data = new int[] { 75, 12, 23, 44, 98, 32, 53, 6 };
        font = new Font("lucida sans demibold", Font.PLAIN, 15);  // j2se 1.3+
        nf = NumberFormat.getNumberInstance();
        nf.setMaximumFractionDigits(1);
    protected void paintComponent(Graphics g)
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        double w = getWidth();
        double h = getHeight();
        // ordinate
        g2.draw(new Line2D.Double(PAD, PAD, PAD, h - PAD));
        // ordinate labels
        String[] labels = getLabels();
        float labelScale = (float)(h - 2*PAD)/(labels.length - 1);
        g2.setFont(font);
        FontRenderContext frc = g2.getFontRenderContext();
        for(int j = 0; j < labels.length; j++)
            float width = (float)font.getStringBounds(labels[j], frc).getWidth();
            float height = font.getLineMetrics(labels[j], frc).getAscent();
            float x = (PAD - width)/2;
            float y = (float)(PAD + j*labelScale + height/2);
            g2.drawString(labels[j], x, y);
        // abcissa
        g2.draw(new Line2D.Double(PAD, h - PAD, w - PAD, h - PAD));
        // plot data
        g2.setPaint(Color.red);
        double xInc = (w - 2*PAD) / data.length;
        double yScale = getValueScale(h);
        double x1, y1, x2, y2;
        for(int j = 0; j < data.length; j++)
            x1 = PAD + j * xInc;
            y1 = h - PAD;
            x2 = x1 + xInc;
            y2 = y1 - data[j] * yScale;
            g2.draw(new Line2D.Double(x1, y1, x1, y2));    // left vertical
            g2.draw(new Line2D.Double(x1, y2, x2, y2));    // top of bar
            g2.draw(new Line2D.Double(x2, y2, x2, y1));    // right vertical
    private double getValueScale(double h)
        int max = getMaxValue();
        return (h - 2*PAD) / max;
    private int getMaxValue()
        int max = Integer.MIN_VALUE;
        for(int j = 0; j < data.length; j++)
            if(data[j] > max)
                max = data[j];
        return max;
    private String[] getLabels()
        int max = getMaxValue();
        double inc = max/3d;
        double next = max;
        String[] s = new String[4];
        for(int j = 0; j < 4; j++)
            s[j] = nf.format(next - j * inc);
        return s;
}

Similar Messages

  • OBIEE 11g - Line-Bar Graph problem

    Hi,
    I am trying to build a Line-Bar graph where the line represents target. My data is as follows:
    Dim1 Dim2 Fact Target
    A Z 10 2
    A Y 5 2
    B X 6 3
    B W 7 3
    Please note that, the target is same across same Dim1. Like A has same target, B has same target.
    Now if I create a stack chart with stack based on Dim2 (Dim2 is in the Vary by Colour), then I get mutiple line for target with the same value for each Dim1.
    I am not sure if I could explain it clearly.
    I want to show one line for the target since its same for Dim1. How can I do that?
    Please help.
    My chart config is as follows:
    Group By (Dim1)
    Vary Coulor by (Dim2)
    Bars (Fact)
    Lines (Target)

    Not yet, and I've been too busy with some SEV 1 issues to goof around with it. I also need to open a ticket about default pivot table formatting - i.e. removing the background colors under the non-data areas, and they also seem to have some sort of gradient fill at the bottom. I'll let you know if I hear anything.
    Thx,
    Scott

  • Bar graph legend problem

    Hi I am using JDeveloper Studio Edition Version 11.1.1.3.0.
    My problem is that I have made a bar graph inside an af:showDetailItem but the legends isn´t shown correct. I can´t see the legends at all when I place the legends in the bottom and if I place them in the right I can see half of the text. The source code is below. If someone can see something wrong in this code don´t hesitate to point it out or if someone know how to get this to work please let me know. To me it looks like a bug but I could be wrong.
    <af:showDetailItem text="Søgulig gongd" id="sdi8"
    stretchChildren="first">
    <dvt:barGraph id="barGraph1"
    value="#{bindings.TrxBrw360JLHistoryGraphRO1.graphModel}"
    subType="BAR_VERT_STACK"
    partialTriggers="::pc1:t1"
    dynamicResize="DYNAMIC_SIZE">
    <dvt:background>
    <dvt:specialEffects/>
    </dvt:background>
    <dvt:graphPlotArea/>
    <dvt:seriesSet>
    <dvt:series/>
    </dvt:seriesSet>
    <dvt:o1Axis/>
    <dvt:y1Axis/>
    <dvt:legendArea automaticPlacement="AP_NEVER"
    position="LAP_BOTTOM"/>
    <dvt:o1Title id="o1Title1" text="Tíðarskeið"/>
    <dvt:y1Title id="y1Title1" text="Upphædd"/>
    </dvt:barGraph>
    </af:showDetailItem>

    Hi,
    I stumpled accross this thread and fear I will hit the same problem with a new customer request.
    Has a bug been filled for this?
    Could not find anything relevant in metalink.
    regards
    Peter

  • Problem with Bar Graph

    Hi Experts,
    i am using obiee 11g and i build a report using bar graph view.
    here problem is in horizontal axis some of my values are missing alternative values are only showing in.
    Bars are showing but labels for that corresponding bars are not displaying .
    pls help me

    Increase the width of the graph something 1000 or so.

  • Problem with bar graphs in Crystal Report

    Hi All,
    I am currently working on bar graphs and i am facing problem displaying trend in the graph when there is no data for any particular date.
    My X-axis has date and y-axis has data.
    I want to display all the dates on x-Axis which is selected by the user.
    E.g.  User has selected fromDate and ToDate as 1st Aug to 10th Aug and I have Data as follows
    08/01/2008 abc
    08/03/2008 xyz
    08/05/2008 klm
    Currently my graph just shows data for 1st,3rd and 5th of August.
    I want my Graph to show all the dates from 1stAug to 10thAug on x-axis and it should not only show  data where it is but also a blank where data is not present
    Please help. Thank you.

    Hi Tenzin
    Following are the steps from where you can change the division of the axes:
    Right click on the report.
    Go to 'Chart Expert' -> 'Axes' tab.
    Select the Manual option under 'Number of divisions'.
    Change the settings so that you can get each date on the axis.
    Hope this helps you.
    Please let us know if you have any further queries.
    Regards
    Ashwini Yadav

  • One-to-many graph problem

    Hi,
    I am haviing a crystal report problem. The problem relates to a one-to-many relationship involving two tables.
    I have a similar setup to the following:
    I have 2 database tables: table1 & table2
    table1 consists of 3 fields:
    {id#}, {yes/no},{up/down}
    table2 consists of 2 fields:
    {id#},
    the field can contain any of the following values: 'open', 'closed', 'final', 'complete'.
    The problem is that there exist many states to one id#.
    I have a bar graph in my report that displays a bar for the count of the{yes/no} field and a bar for the count of the {up/down} field. I want also a bar for the count of when the field = 'final'.
    What happens when I write a formula for the field in the second table and place it in the 'show values' section of the chart expert, is the count displayed in each bar on the graph increases significantly. I am assuming this is because there are multiple records in table 2 for each record in table 1.
    What I want to happen is that the graph displays bar 1 and bar 2 correctly and then when I put in the formula for the third bar, it simply displays that bar with the count for when the field = 'final'. I dont want it to affect the whole garph.
    Has anyone got any suggestions on how I can do this?
    I have tried messing around with the distinct records setting in crystal and also by writing an sql query specifying DISTINCT keyword instead of using the select expert, but to no avail.
    Please please can someone help me with this issue.
    Thank you.
    J

    You can add a 1-1 query key through the code API in a descriptor amendment method. You could also define a selection criteria on the 1-m mapping to filter the type=2.
    Example: (see Foundation Library manual 8-17)
    OneToOneQueryKey queryKey = new OneToOneQueryKey();
    queryKey.setName("organization");
    queryKey.setReferenceClass(Organization.class);
    ExpressionBuilder builder = new ExpressionBuilder();
    queryKey.setJoinCriteria(builder.getField("ORGANIZATION.ORG_ID").equal(builder.getParameter("RELATIONSHIP.PARENT_ID").and(builder.getParamater("RELATIONSHIP.RELATIONSHIP_TYPE").equal(2)));
    relationDescriptor.addQueryKey(queryKey);
    Example: (of 1-m mapping with selection criteria)
    OneToManyMapping mapping = new OneToManyMapping();
    mapping.setReferenceClass(Relation.class);
    mapping.setTargetForeignKey("RELATION.PARENT_ID");
    ExpressionBuilder builder = new ExpressionBuilder();
    mapping.setSelectionCriteria(builder.getField("RELATIONSHIP.PARENT_ID").equal(builder.getParameter("ORGANIZATION.ORG_ID").and(builder.getField("RELATIONSHIP.RELATIONSHIP_TYPE").equal(2)));
    orgDescriptor.addMapping(mapping);

  • How to get bar graph in word in labwindow/CVI ?

    how to get bar graph in word in labwindow/CVI ?

    ashwinic9,
    spawning your question over more and more threads (the present one, this one and this other one) won't give you a faster answer; instead, it will irritate forum users! 
    Especially if you have at your disposal a fast way to perform a test. I pointed you some days ago to word report example, that writes a table to a word document: did you tried changing the graph into a bar graph and generating the report? I have done it for you and the result is OK, as you can see in the attached document.
    Now, since the example works well, there must be something in your particular situation that prevents the graph to be shown; that is: you must add some more data on your actual problem and maybe a small example that exposes the problem.
    But please: keep active only this discussion and let the other threads die! 
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?
    Attachments:
    wordreport.doc ‏38 KB

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Working with bar graphs, pie graphs, etc.

    I'm working with somone who likes to create pie graphs, bar graphs and other charts. This guy is not a designer and is using Microsoft applications like Excel and PowerPoint to create these charts. My job is to bring these charts over to an ID document I'm working on. The black and white ones are no problem: I can convert them to a PDF, open them up in Photshop, and rasterize them. The color ones are screwed up. We are printing only black and one spot color, and Excel is apparently programmed to save color charts as RGB or CMYK. So my basic question is: what do you do for graphs? Is there a good application for making graphs that are design quality that knows how to do spot color? Or is it best to lay out graphs manually ID, by drawing lines, shapes and bars and coloring in the spot colors myself? Thanks.

    Illustrator.
    You should be able to bring your Excel or PowerPoint graphs into Illustrator as easily as into Photoshop.

  • 3D bar graph

    Hello,
    I'm working with a 3D bar graph I've connected a matrix on 3D Bar Datatype.lvclasslotHelper.vi.
    I've some problems with this graph:
    - aparently, each row of my matrix is considered as a data: with a 10x7 matrix, my graph has 10 different colors (one color by data/row). If possible, I've would like modify the color of each bar independently depending on the value. In a first step I've setted all the bars at the same color withe the property node "color and name"
    - if possible, I want to activate a cursor, or something else to have the Z value of the seleted bar (with mouse). I've tested all the proerties but it doest't run...
    - is it possible to write the Z value on the top of each bar?
    Thanks for your help and examples
    Francis M | Voir mon profil
    Certified LabVIEW Developer

    Hello Cisco,
    It is not possible to write the Z value on the top of the each bar. It doesn't exist a node propertie to select a bar in the 3D bar.
    I hope i answer to your question.
    Regards,
    Romain P.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> NIDays 2011, le mardi 8 février au CNIT de Paris La Défense

  • 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

  • Pages '09 Bar Graph Color Help!

    Hi everyone.
    I am trying to make a chart in pages 09 and I have a wee bit of a problem.
    Lets say I make a bar graph, a simple one with 4 bars. What do I do if I want to change the color of just one bar? If I want the first bar to be red and the rest to be green for example. I already tried dragging the color onto one bar individually but all the bars are still changing with it.
    Thanks a million
    NeoXY

    Pages uses a single colour for each series of data. Each series is listed in a single column.
    Try moving the datum you want to show in a different colour one column to the right, leaving its cell in the 'regular' column empty.
    Select the original column(s) and the extra one, then choose the stacked bar graph (second item) from the Charts button's popup menu.
    Regards,
    Barry

  • ADF DVT: Stack Bar Graph unable to display all Bar.

    Hi Experts,
    I'm currently having a problem displaying bar graphs in my Use Case.
    There are unavoidable instance that at some point of the information provided, there may be part that contain a very huge data.
    Below is my sample code.
    In the example code below only the detail with huge data is rendered in the graph. and the rest are not rendered. is this  a known issue?
    screenshot: http://sdrv.ms/13DXeyn.
    I'm using ADF PS6 in windows7(64bit), Chome browser.
    ManagedBean. This bean contains static data for testing only. Notice how big the data in the 2nd to the last detail.
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.List;
    import javax.faces.event.AbortProcessingException;
    import oracle.adf.view.faces.bi.component.graph.UIGraph;
    import oracle.adf.view.faces.bi.event.TimeSelectorEvent;
    public class GraphTimeAxisManagedBean {
        SimpleDateFormat stdFormat = new SimpleDateFormat("yyyy-MM-dd-HH.mm.ss");
        public List getTabularData() {
            ArrayList list = new ArrayList();
            try {
              list.add(new Object[] { new Date(stdFormat.parse("2010-06-18-00.00.00").getTime()),"", new Double(0) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-06-18-00.00.00").getTime()),"description 1", new Double(20) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-06-18-00.00.00").getTime()),"description 2", new Double(50) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-06-18-00.00.00").getTime()),"description 3", new Double(30) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-07-01-00.00.00").getTime()),"", new Double(0) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-07-01-00.00.00").getTime()),"description 1", new Double(150) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-07-01-00.00.00").getTime()),"description 2", new Double(240) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-07-01-00.00.00").getTime()),"description 3", new Double(10) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-08-01-00.00.00").getTime()),"", new Double(0) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-08-01-00.00.00").getTime()),"description 1", new Double(60) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-08-01-00.00.00").getTime()),"description 2", new Double(80) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-08-01-00.00.00").getTime()),"description 3", new Double(10) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-09-01-00.00.00").getTime()),"", new Double(0) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-09-01-00.00.00").getTime()),"description 1", new Double(90) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-09-01-00.00.00").getTime()),"description 2", new Double(50) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-09-01-00.00.00").getTime()),"description 3", new Double(80) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-10-01-00.00.00").getTime()),"", new Double(0) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-10-01-00.00.00").getTime()),"description 1", new Double(10) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-10-01-00.00.00").getTime()),"description 2", new Double(90) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-10-01-00.00.00").getTime()),"description 3", new Double(80) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-11-01-00.00.00").getTime()),"", new Double(0) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-11-01-00.00.00").getTime()),"description 1", new Double(200) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-11-01-00.00.00").getTime()),"description 2", new Double(20) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-11-01-00.00.00").getTime()),"description 3", new Double(70) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-12-01-00.00.00").getTime()),"", new Double(0) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-12-01-00.00.00").getTime()),"description 1", new Double(60) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-12-01-00.00.00").getTime()),"description 2", new Double(80) });
              list.add(new Object[] { new Date(stdFormat.parse("2010-12-01-00.00.00").getTime()),"description 3", new Double(10) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-01-01-00.00.00").getTime()),"", new Double(0) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-01-01-00.00.00").getTime()),"description 1", new Double(90) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-01-01-00.00.00").getTime()),"description 2", new Double(80) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-01-01-00.00.00").getTime()),"description 3", new Double(70) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-02-01-00.00.00").getTime()),"", new Double(0) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-02-01-00.00.00").getTime()),"description 1", new Double(60) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-02-01-00.00.00").getTime()),"description 2", new Double(80) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-02-01-00.00.00").getTime()),"description 3", new Double(30) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-03-01-00.00.00").getTime()),"", new Double(0) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-03-01-00.00.00").getTime()),"description 1", new Double(203)});
              list.add(new Object[] { new Date(stdFormat.parse("2011-03-01-00.00.00").getTime()),"description 2", new Double(90)});
              list.add(new Object[] { new Date(stdFormat.parse("2011-03-01-00.00.00").getTime()),"description 3", new Double(70)});
              list.add(new Object[] { new Date(stdFormat.parse("2011-04-01-00.00.00").getTime()),"", new Double(0) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-04-01-00.00.00").getTime()),"description 1", new Double(75) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-04-01-00.00.00").getTime()),"description 2", new Double(86) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-04-01-00.00.00").getTime()),"description 3", new Double(99) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-05-01-00.00.00").getTime()),"", new Double(0) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-05-01-00.00.00").getTime()),"description 1", new Double(60105) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-05-01-00.00.00").getTime()),"description 2", new Double(50309) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-05-01-00.00.00").getTime()),"description 3", new Double(50210) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-06-01-00.00.00").getTime()),"", new Double(0) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-06-01-00.00.00").getTime()),"description 1", new Double(80) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-06-01-00.00.00").getTime()),"description 2", new Double(77) });
              list.add(new Object[] { new Date(stdFormat.parse("2011-06-01-00.00.00").getTime()),"description 3", new Double(99) });
            } catch (ParseException e) {
            return list;
    JSFF (UI Page).
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <af:panelGroupLayout id="pgl1">
        <dvt:graph id="barGraph1" graphType="BAR_VERT_STACK" shortDesc="testing"
                   inlineStyle="width:800px; height:300px;"
                   tabularData="#{pageFlowScope.GraphTimeAxisManagedBean.tabularData}">
          <dvt:background>
            <dvt:specialEffects/>
          </dvt:background>
          <dvt:graphPlotArea/>
          <dvt:seriesSet>
            <dvt:series/>
          </dvt:seriesSet>
          <dvt:o1Axis/>
          <dvt:y1Axis/>
          <dvt:legendArea automaticPlacement="AP_NEVER"/>
        </dvt:graph>
      </af:panelGroupLayout>
    </jsp:root>
    Thanks,
    achie

    Achie,
    This is not an issue with the graph as such, but the data issue. Since the value of the data that is being displayed is huge and other datas are relatively very small to occupy the graph area (Ex : 60105 Vs 10).
    You may want to try implementing zoomListener and/or zoomScrollListener for the graph to zoom and see the small datas.
    &amp;lt;dvt:graph&amp;gt;
    -Arun

  • ELOCATION_MERCATOR.WORLD_MAP errors for pie/bar graph theme below zoom 5

    Hi,
    I am trying to create a map using ADF DVT map component in my jspx page. I am using 'elocation_mercator.world_map'. I am creating a pie graph theme over the base world map. For some reason whenever I zoom below 5, i get following javascript error
    [MVThemeBasedFOIControl.foiLoaded] MAPVIEWER-05523: Cannot process response from MapViewer server. (<?xml version="1.0" encoding="UTF-8" ?> <oms_error> MAPVIEWER-06009: Error processing an FOI request.
    Root cause:FOIServlet:null</oms_error>)
    The Pie graphs displays fine at or above zoom level 5. I tried the same thing using my local map viewer instance which has mvdemo.demo_map as the base map. The pie graph displays fine at all zoom levels using my local map. Can anybody tell me what may be the problem when I use the elocator world_map. I can't even look at the logs as it's a hosted service.

    Here are the steps to reproduce the problem
    1) Create a jspx page.
    2) From the component palette on the right hand side, select ADF Data Visualizations and then click on Map in the Geographical Map section. This will open an ADF Map configuration window.
    3) Create a new Map Configuration by providing an id and a URL connection. If you have not created a URL Connection to elocation service, create a new connection to "http://elocation.oracle.com/mapviewer" and select that connection.
    4) You will see data source as ELOCATION_MERCATOR and Base map as WORLD_MAP selected. Enter startingY="38.648911" startingX="-98.349609" , select mapZoom="5" and Click on OK.
    5) Now create an entity object and a view object based on the STATES table in the MVDEMO database and add it to an application module.
    6) Refresh the application module data control. You should a new StatesView1 data control.
    7) Drop it on the map and select Bar graph theme. This will open a Bar Graph theme configuration window for the Map.
    8) In the Name select MAP_STATES_ABBRV. In the location column select STATE_ABRV.
    9) In the Data Location Select Location as StateAbrv and Location Label as State.
    10) Enter Series Attribute as Totpop and Label as Total Population. Enter series attribute as Female and Label as Female Population. Click OK.
    11) Now Run this page.
    12) The page runs fine displaying the Bar chart. Now zoom out. You will get error
    '[MVThemeBasedFOIControl.foiLoaded] MAPVIEWER-05523: Cannot process response from MapViewer server. (<?xml version="1.0" encoding="UTF-8" ?> <oms_error> MAPVIEWER-06009: Error processing an FOI request.
    Root cause:FOIServlet:null</oms_error>)'
    When you say that we should use elocation for map tiles not for FOI rendering, does that mean that I should not use the themes provided by elocation. When I enter the base URL to a mapviewer instance in my map client, the base map and the themes are displayed from the database used by the mapviewer instance. So, how can I use my own mapviewer for FOI rendering? Can you please explain a little more. Thanks.

  • Solution for Messed (Error) Bar Graph of iPod Session in iTunes

    I have encounter the error of iPod Session Bar Graph in iTunes like this:
    http://img160.imageshack.us/img160/4527/capacitybarha6.png
    and I find out the solution that can fix this problem!
    Go to DEVICES > Your iPod > Music > Right click a group of file, and then [Get Info] > Options > Tick the box of [Gapless Album] and choose [Yes], wait for awhile for iTunes processing, and the Bar Graph restore to ordinary status!

    Sounds like it has a drive collision with another device, would you happen to have an external drive or are you on a network, or do you have a printer with memory slots?
    http://docs.info.apple.com/article.html?artnum=93499

Maybe you are looking for

  • How do I make 2 columns to combine 2 pages out of 5 in iWorks (Pages)?

    I'm writing a paper - 5 pages long at the moment. Pages 4 & 5 are short (narrow items - like ingredients in a recipe) How do I get just pages 4 & 5 to print in 2 columns, there by only having 4 pages in my document? Can't do it like I used to be able

  • Layout problems in IE only

    Here's the portfolio I'm making: http://jakemakesthings.110mb.com/gallery.html It's my first website outside of Flash, and the only websites I will be making will be my own Portfolio's so I've made it with tables in the design view since I'm not capa

  • Brightness/Contrast Problem in CS3 & CS2

    When I adjust (using legacy option) the sliders, then hit okay, the adjustments don't apply, and the image reverts to it's original state as if I hadn't adjusted the contrast or brightness at all. It did this in both CS3 & CS2. Has anyone else had th

  • After starting up the listener the server consuming 100% CPU

    Hi, when i startup the database tier (EBS 12.1.3 and DB 11.2.0.2) its stared well and the CPU usage is normal.But when i start the listener the server (RHEL 5.8) start consuming 100% CPU. alert.log details in file /ebs/UAT/bin/db/tech_st/11.2.0/admin

  • Transaction should not save if Credit card authorization fails-CRM

    Hi all, In CRM 4.0, we have a requirement where for the payment card authorization if fails the transaction should not get saved. Is it possible, if yes how? Would appreciate a response. thanks in advance, mdv.