Get a graph to draw

I am using the data visualization tools tag library and manually setting the data via the tabularData attribute.
Here is the relevant portion of my JSF (jspx) page:
     <dvt:graph id="tgraph" imageFormat="PNG" stylePath="Comet"
          tabularData="#{identity.tabularData1}" imageWidth="200"
          threeDEffect="true" graphType="BAR_VERT_CLUST"
          contentDelivery="immediate" shortDesc="Chart"
          imageHeight="100">
     </dvt:graph>
The tabularData1 field in the identity bean at this point contains just some hard coded values. e.g.:
     Calendar cal = Calendar.getInstance();
     long time = cal.getTimeInMillis();
     tabularData1.add(new Object[]{ new Date(time), "A", Double.valueOf(1D) });
     tabularData1.add(new Object[]{ new Date(time), "B", Double.valueOf(1D) });
     tabularData1.add(new Object[]{ new Date(time + 86400000L), "A", Double.valueOf(2D) });
     tabularData1.add(new Object[]{ new Date(time + 86400000L), "B", Double.valueOf(2D) });
     tabularData1.add(new Object[]{ new Date(time + 172800000L), "A", Double.valueOf(3D) });
     tabularData1.add(new Object[]{ new Date(time + 172800000L), "B", Double.valueOf(3D) });
As far as I can tell from reading many other threads, I believe I've done all that part right. The problem is that it will not actually display the graph. No error messages are displayed or logged either.
Is there another command that I need to run to actually get it to create the image?
I've also tried this through binding and using the setTabularData method too, but to no avail.
My Web application has the following libraries in it. Am I missing some?
     adflogginhandler.jar
     adfm.jar
     adfshare.jar
     adfsharebase.jar
     dvt-face.jar
     dvt-jclient.jar
     dvt-utils.jar
     jewt4.jar
Thanks,
David

Thanks. I tried that it mine and I still can't get it to draw.
Therefore I started a whole new project with only this in it. Here are my files. Is there something that I'm leaving out.
Test.jspx:
&lt;?xml version='1.0' encoding='utf-8'?&gt;
&lt;jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces"
version="2.1"&gt;
&lt;jsp:directive.page contentType="text/html;charset=utf-8"/&gt;
&lt;f:view&gt;
&lt;af:document title="Test Document" maximized="true"&gt;
&lt;af:panelGroupLayout layout="vertical"&gt;
&lt;af:messages/&gt;
&lt;af:panelGroupLayout layout="horizontal" halign="center"&gt;
&lt;dvt:graph id="tgraph" imageFormat="PNG" stylePath="Comet"
tabularData="#{testBean.tabularData}" imageWidth="400"
threeDEffect="true" graphType="BAR_VERT_CLUST"
contentDelivery="immediate" shortDesc="Chart"
imageHeight="400"&gt;
&lt;/dvt:graph&gt;
&lt;/af:panelGroupLayout&gt;
&lt;/af:panelGroupLayout&gt;
&lt;/af:document&gt;
&lt;/f:view&gt;
&lt;/jsp:root&gt;
faces-config.xml:
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;faces-config
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee [http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd]"
version="1.2"&gt;
&lt;application&gt;
&lt;default-render-kit-id&gt;oracle.adf.rich&lt;/default-render-kit-id&gt;
&lt;/application&gt;
&lt;managed-bean&gt;
&lt;managed-bean-name&gt;testBean&lt;/managed-bean-name&gt;
&lt;managed-bean-class&gt;test.TestBean&lt;/managed-bean-class&gt;
&lt;managed-bean-scope&gt;request&lt;/managed-bean-scope&gt;
&lt;/managed-bean&gt;
&lt;/faces-config&gt;
TestBean.java:
package test;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import com.att.utils.DateUtil;
public class TestBean {
private List&lt;Object[]&gt; tabularData = new ArrayList&lt;Object[|http://forums.oracle.com/forums/]&gt;();
public TestBean() {
Calendar cal = DateUtil.zeroCalendarFields(Calendar.getInstance(), DateUtil.ZERO_DAY);
cal.add(Calendar.MONTH, -1);
long time = cal.getTimeInMillis();
tabularData.add(new Object[]{ new Date(time), "A", Double.valueOf(100) });
tabularData.add(new Object[]{ new Date(time), "B", Double.valueOf(150) });
tabularData.add(new Object[]{ new Date(time + 86400000L), "A", Double.valueOf(200) });
tabularData.add(new Object[]{ new Date(time + 86400000L), "B", Double.valueOf(250) });
tabularData.add(new Object[]{ new Date(time + 172800000L), "A", Double.valueOf(300) });
tabularData.add(new Object[]{ new Date(time + 172800000L), "B", Double.valueOf(350) });
public List&lt;Object[]&gt; getTabularData() { return tabularData; }
* @param tabularData
public void setTabularData(final List&lt;Object&gt; tabularData) {}
WebTest.war: (files in WAR)
WebTest.war/Test.jspx
WebTest.war/WEB-INF/
WebTest.war/WEB-INF/classes
WebTest.war/WEB-INF/classes/test
WebTest.war/WEB-INF/classes/test/TestBean.class
WebTest.war/WEB-INF/faces-config.xml
WebTest.war/WEB-INF/lib
WebTest.war/WEB-INF/lib/adf-richclient-api-11.jar
WebTest.war/WEB-INF/lib/adf-richclient-impl-11.jar
WebTest.war/WEB-INF/lib/adflogginghandler.jar
WebTest.war/WEB-INF/lib/adfm.jar
WebTest.war/WEB-INF/lib/adfshare.jar
WebTest.war/WEB-INF/lib/adfsharebase.jar
WebTest.war/WEB-INF/lib/dvt-faces.jar
WebTest.war/WEB-INF/lib/dvt-jclient.jar
WebTest.war/WEB-INF/lib/dvt-utils.jar
WebTest.war/WEB-INF/lib/jewt4.jar
WebTest.war/WEB-INF/lib/share.jar
WebTest.war/WEB-INF/lib/trinidad-api-1.2.9.jar
WebTest.war/WEB-INF/lib/trinidad-impl-1.2.9.jar
WebTest.war/WEB-INF/lib/xercesImpl-2.6.2.jar
WebTest.war/WEB-INF/lib/xmlparserv2.jar
WebTest.war/WEB-INF/web.xml
I figure I'm missing something simple, but I just can't figure it out. I've also tried it in both FireFox and IE, but neither one display a graph. The only error I get is something about ActiveData, but I believe that isn't relative here.
Thanks again,
David

Similar Messages

  • 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

  • How can get a Graphics to draw line on screen?

    How can get a Graphics to draw line on screen?
    Now, I can get a Graphics to draw line based on component. For example JPanel, but I want to get a Graphics to draw line on screen.

    By drawing on the screen, I assume you mean drawing outside the bounds of a top-level window like
    JFrame or JDialog. You can't do that. At least, without going native and even then that's a dodgey thing
    for any platform to let you do. One thing you can do is simulate it with a robot's screen capture:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.swing.*;
    public class X {
        public static void main(String[] args) throws Exception {
            Rectangle bounds = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
            BufferedImage image = new Robot().createScreenCapture(bounds);
            Graphics2D g2 = image.createGraphics();
            g2.setStroke(new BasicStroke(20));
            g2.setPaint(Color.RED);
            g2.drawLine(0, 0, bounds.width, bounds.height);
            g2.drawLine(bounds.width, 0, 0, bounds.height);
            g2.dispose();
            JLabel label = new JLabel(new ImageIcon(image));
            label.addMouseListener(new MouseAdapter(){
                public void mousePressed(MouseEvent evt) {
                    System.exit(0);
            JFrame f = new JFrame();
            f.setUndecorated(true);
            f.getContentPane().add(label);
            f.setBounds(bounds);
            f.setVisible(true);
    }

  • How can I get my graph to plot vs. my data points instead of vs. time?

    how can I get my graph to plot vs. my data points instead of vs. time?

    Maybe you could exaplin in a few more words what "my data" is. Are the values equally or randomly spaced?
    If they are equally spaced, just adjust offset and multiplier, and axis label.
    If they are randomly spaced you are probably looking for an X-Y graph. Check the shipping examples.
    LabVIEW Champion . Do more with less code and in less time .

  • Can we get multiple graphs dynamically in oracle apex?

    Can we get multiple graphs dynamically in a page in oracle apex?

    Vaishalini wrote:
    Thank You riedelme and Howard.
    Below is the example, I need to dynamically displays graphs with content (somewhat) dynamically selected for client from the select list.
    Example :-
    Lets say client A contains 5 contracts as A1, A2, A3, A4, A5.
    And Client B contains 3 contracts as B1 ,B2, B3.
    created a graph for contracts on sum(unique_submissions) and sum(total_submissions).
    Requirement is :-
    When I select Client A , then the page should show 5 individual graphs based on client A contracts in same page(as client A has 5 contracts).
    Similarly when select client B , the same page should show 3 graphs (as client B has 3 contracts).
    Please let me know if you understood the example, what I was trying to explain to you (I hope)and let me know if you need further more information.
    Thanks.It sounds like you need to use Howard's idea of conditional region display. When you select client A display client A graphs, and when you select client B display those graphs. Read about conditional region display in the documentation and post back here if you have more questions

  • I'm trying to set up a DAQ assist just to measure some voltage, how do i get the graph to start from 0 (time) every time I press run

    Hi all,
    I am trying to set up a simple DAQ assist to measure some voltages (currently a 9 volt battery to aid set up), when choosing to use a waveform chart to log the voltages the graph doesnt start from 0 (time seconds) how do I do this and get it to reset every time I press run or even stop.
    What I want to see at the end is a chart for the full lenght of the test showing voltage against time in seconds.
    Any ideas peeps
    many thanks
    Shane

    Hi Shane,
    Look at this VI
    Here, I clear the chart before running the VI, using a 'history data' property node ( i pass an empty array to clear it)
    In effect, each time you run the VI, the chart will begin at 0:00
    Hope this helps
    Regards
    Dev
    Attachments:
    chart_start.vi ‏20 KB

  • How can I get XY graph look like that picture

    Hi everyone
          They are two picture (one name is "I want "(call picture 1),other is "I have""(call picture 2),) in the attach.  I want get the form of the picture 1.
    They are a lot of different.
    1 The background color is different. I want get the color as picture (white).
    2 The y legend in the picture 1 have different position, but I can do it.
    Someone can give me any suggestion?Can  I  using other method ?
    Attachments:
    i want.jpg ‏53 KB
    i have.jpg ‏41 KB

    Hello,
    This attached file might help you.
    Might be this graph will fulfill your need.
    Regards
    Prabhakant Patil
    Attachments:
    Graph.vi ‏8 KB

  • How can I get my graph to stop auto-scaling?

    I am not a new programmer and I know how to make a graph auto-scale... IF I want it to.  However, I have a cluster of graphs (strip charts and waveform graphs act the same) that take in values and update each time.  My issue is that I have a static window size and all of the graph start out 'square' with each other.  Then based on how large the y-axis numbers of each different graph get the whole graph grows and shrinks accordingly.  So it kind of makes my graphs look like a sideways equilizer settings type thing from my stereo.
    I'd like to keep the x-axis from changing size based on the y-axis number size.  If anyone can help it would be greatly appreciated.  I can send a sample of the problem if necessary.
    Thanks,
    Barney

    This link was ok... but it still did not solve my problem.  I saw the 'Advanced... Reset Scale Layout' but that made my graphs larger than I'd like them.  So when I resized them the problem persisted.  Also, I don't really have the option to swap sides on my y-axis. 
    It worked fine in LabVIEW version 6.1 but since the upgrade to LabVIEW 7.1 it hasn't worked.
    I've attached a VI.  Note how the left side of the graph grows and shrinks as the graph progresses. 
    Any ideas?
    Attachments:
    TestGraphProb.vi ‏140 KB

  • I keep getting 'USB port is drawing too much power error'

    I have an old 2010 13" MacBook Pro. Just tonight, it started giving me a 'USB port is drawing too much power' error. The only thing I had plugged in to my MacBook was my iPhone cable (without the phone) and an Intuos tablet I recently bought. At first I thought it was the tablet, because the tablet started acting wonky after that error message (it worked just fine earlier in the day).
    After restarting, the tablet works with no problem so I thought the problem must be the iPhone cable. The thing is, I read in some other forum that a cable not plugged to the iPhone shouldn't draw power, and they said if it does then it's a sign for a short circuit. My iPhone cable is a little bit worse for wear, to be honest.
    So my question is: Is the problem my cable and if it is is it dangerous if I use this cable to charge my phone with a USB wall charger? 2nd, Is there anyway to fix this other than buying a new iPhone cable?
    Thanks in advance!

    Thats a warning. if you continually get that warning with the iphone cable and you keep using it. You could eventually  disable that USB port.

  • How can I get back the Styles Drawer in Pages 5?

    The Pages Styles Drawer allowed the quick highlighting/assignment ot a style to text. In long complex documents the open drawer made Style assignment quick and easy. NO MORE. Unless I am missing some command the Styles Drawer has been replaced by a new and much slower multistep clic/dropdown/click process. Is there any workaround to this problem? Help!

    If you want to open a new tab in a certain url (like www.google.com or another site) go to [http://kb.mozillazine.org/About:config about:config] find/type '''browser.newtab.url''' , double click on it (or right click on it and select modify) and type the url you want. Every time you open a new tab you open it in that url/site.
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • How can I get the coordinates to draw a line?

    Hi,
    I want to draw a line. Here is a part of my Quell-code.
    public class Map extends JFrame {
    public Map() {
    super("Map");
    setSize(340, 340);
    MapPane map = new MapPane();
    getContentPane().add(map);
    class MapPane extends JPanel {
    public void paintComponent(Graphics comp) {
    Graphics2D comp2D = (Graphics2D)comp;
    comp2D.drawLine(0,0,340,340);
    Now, the line begins exactly top left in the edge, but ends not exactly down right in the edge of my Frame. Is there any possibility to determine the exact coordinates of the frame. I thought, if the size of the window is set by the setSize-Method to (340,340), the line ends exact
    in the edge (down right). See: comp2D.drawLine(0,0,340,340).
    Can somebody give me a piece of advice, please?
    Thanks, joletaxi

    Have you tried the getWidth() and getHeoght() methods to determine how long the line should be?

  • TS4148 The sim card for my new iphone is not working and I can't get the sim card 'drawer' open - also can't get a telephone appointment with apple until Monday evening - any ideas?

    The sim card for my new iphone 4, purchased today, is saying the sim card is not installed.  I have followed the directions included on the support page but have two problems.  1.  I can't open my sim card sleeve with the key and  2.  I can't get any apple support until Monday evening - can anyone help please?

    Hope this photo helps.

  • Keynote graph or drawing in pages

    is there an easy way to select a graphic in keynote straight into pages? simply select in keynote and copy paste in pages doesnt work out fine. If I export the keynote graph to PDF and then insert in pages it looks good.

    Hello again jaz4mac
    if I import my book into Pages into a book template, will the document automatically format itself, or will I have to go through the entire thing to make the corrections?
    It will partially format itself but you will have to go through the entire thing. Scrivener is designed to export in a format that can be used by another word processor or page layout program so that you don't have to retype all the text. However the final formatting is a manual process.
    Exported output from Scrivener will most likely be in RTF format (you have other options). It will have some rudimentary character formatting that will survive when you insert it into a Pages document started off one of those templates. The text will be properly flowed into the template, all your paragraph breaks will be in the right place, bold text will be bold etc However Pages is not going to be able to automatically understand which parts of your document are headings, which is body text etc. You will need to manually go through the document and apply the relevant Paragraph styles from the template you choose.
    Styles make this task pretty quick so it isn't as daunting as it sounds. Just mark or click in the paragraph and then choose the style from the menu.
    As I tried to indicate in my earlier post, the RTF output of Scrivener may be good enough for a publisher. Authors here report that they don't really care about fancy formatting.
    However if you do want the layout to look fancy, you will still have a bit of work to do.
    iMac 17" Flat Panel (OS X 10.4.8)    

  • Want to get some more points draw by curveTo() method of PATH2D

    I draw a curve using curveTo() method of Path2D. Is there any way to find some points on that curved path except start, end and control points. The start, end and control points I am having with me on which basis I am drawing the curve.
    Thanks & Regards

    Note: This thread was originally posted in the Swing forum, but moved to this forum for closer topic alignment.

  • Add a simple setting to Intensity Graph that draws grid on top of data

    It would be extremely useful to break up the Intensity Graph data into cells to easily see "coordinates".  At the moment you have to follow coordinates with your finger or a pen.
    I was given this solution but it is surely an overkill for what should be a simple setting.
    http://forums.ni.com/t5/Measurement-Studio-for-NET/WPF-Intensity-Graph-gridlines-not-visible-on-plotted-data/td-p/3168193
     

    Siddhesh,
    You could define buttons / controls ... called 'next comp code' and 'prev comp code', and then in the events for these controls you could re-populate the alv data table with the data for each company code each time a button is pressed. 
    Hope this helps ...
    Duane

Maybe you are looking for

  • OpenMessageQueue and XA

    I dont understand how OpenMessageQueue could participate in global transaction, when it is quite possible that a commit will fail: http://docs.sun.com/app/docs/doc/819-4469/6n6kb5cs3?a=view#gczqs It says: "In the second case, when the failover occurs

  • Bold Font issues in Safari

    Since installing leopard on my Mac Pro Quad my safari highlight font has changed to a really Black Condensed font like Helvetica Compressed or Inserat, not sure which, and the letterspacing is really tight making it illegible most of the time. I can'

  • Maximise DVD quality from completed iMovie project

    I recently completed an iMovie project of my son's wedding shot on my new JVC Everio video camera.  All footage successfully downloaded in Full Quality into iMovie. I did all edits on iMovie. All seemed great ......and so very excitedly, I exported i

  • Portal Performance Trend Report

    Hi Portal Gurus, I have one request. For ABAP Based system we can get historical performance report. But for Portal , how we can get daily / weekly or monthly based report for performance. We have Mercury Tool to get report for few 'Pages' based on u

  • Replacing images in Keynote '09

    I have a slide show of 40 pictures set to music. I want to update this show with 40 new pictures but would like the animations and sizes to stay exactly the same. I thought there was a way to simply drag the new pictures into the old slots and they'd