I want to make a Graph Drawing Servlet

I need to make line graphs, having days on the X axis and certain values on the Y axis. I need to show this on a JSP. I was thinking of making a servlet returning the image, but I'm not finding any Java solution for the graph drawing part. I would really like to avoid having to manually draw the graph. Does anyone know a simple way to do this?

The Google Chart API is pretty simple and powerful.
http://code.google.com/apis/chart/

Similar Messages

  • I want to make gImage Class extends Image and use Graphics2D

    Sorry, my english short...
    I want to make gImage Class extends Image and use Graphics2D
    I trying to do...
    make class gImage..
    extends Image class. (Inheritance)
    but Image class is abstract class..
    And I want to use gImage class same as Image class.
    I can't use constructor... because by Abstract calss...
    How do i?
    Help me.. plz...
    And I want to use Graphics2D at Applet Game, But not use Java JDK Plug-in...
    No Way?

    You need to use BufferedImage with 2D or RenderedImage with JAI.
    BufferedImage effectivley extends an Image so you can
    draw it to screen in paintCOmponent.
    I use an Extended JPanel to draw an image in a Panel with this.
    MArk

  • How to make multi user drawing application

    how to make multi user drawing application in as 3.0

    I'd suggest using Flash Media Interactive Server if you wish to make this type of application and use Flash as the interface.  I can't give you the details on exactly how to implement it, but using Remote Shared Object and FMIS would serve as the basis.  I believe that the package comes with examples of Shared Objects that can serve as a simple basis from which to proceed.  After that you might want to see if you can find an available whiteboard app that can be leveraged to do as you wish.
    I apologize in advance if using this type of solution is a non-starter, I've been using FMIS locally and have plans to eventually implement something similar to this type of drawing app as well.

  • I want to make a 3d Jelly animation in Flash, can i?

    Hi there,
    I know that Flash 3D is limited and maybe we need to wait
    till we can have a MAYA/3DS MAX like Output in Flash. But I want to
    make some thing sure.
    I need to make a 3D Jelly like ball, it flies to a wall and
    splatters on the wall creating a "Nickeledeon TV" like 3D image.
    Bubbles pop out of it, and slowly two letters some out of it like
    its bubbling up. I need a great camera view, where the whole
    scenario looks like a movie action sequence.
    Now maybe you have a sequence in your imagination which gives
    you an idea of what i need, so can this be done in Flash CS3/CS4
    (Most favorably without using a 3rd party tool) ?
    The output would be having Lighting, shines, a little
    reflection(say raytrace rendered), camera, texture, and a great
    camera trucking.
    Regards,
    Roshan Kolar

    Try this:
    Draw two squares and create a blend between them. Then apply the 3-D to the blend, like this:
    You'll have to work with the angles and perspective to make it match, but you could start with the setting you used when making the shelves.

  • I want to make an installer

    I 've made a web application that contains JSPs and Servlets of course and I want to make an installer(that consists of JSPs and Servlets) that can be put on the web server and install my own application, is there any way that can make the installer run when it's on my web server?

    khafaga wrote:
    what I was asking about is : if I made the tomcat in-process , will this make the web server redirect to the tomcat and execute the JSPs and Sevlets in my installer?I don't understand what you are saying.
    If you have tomcat then you don't need a web server at all.
    Tomcat will serve the static and dynamic content.
    I'm just not understanding what you are trying to do.
    Perhaps if you describe the problem that you are trying to solve it might help.

  • *** ~ can this do this: i want to make multiple circles within circles like the target logo ~ ***

    im makign a simple visualisation. i want to dl a free trial of w/e i need and im done
    a link to a guide on how to do this would be good
    good links are good
    also need good sites to ask questions liek these in the future, thanks
    *** ~ can this do this: i want to make multiple circles within circles like the target logo ~ ***

    *** ~ The Invisible Problem: Video As The Best Medium For Most Things ~ ***
    Do you know how to learn? I don't think you do. Because we've all learned the same way. From school. The broken school system that we all know, and that some are reinventing.
    Let's elaborate. When learning anything (that isn't invisible), we don't need to know awkward, confusing, and strange words. That do not mean anything, in and of itself.
    ~ Hard Words ~
    What I mean by the invisible? Take 1+1. That's arithmetic, a branch of mathematics. That's invisible. We don't know what 1 is. What don't know what 1 means. It's just a line that goes up and down on the right wall in a cave of a caveman's drawing.
    Until, of course, some inventive educators (not necessarily the traditional concept of "teachers") decides upon themselves, and say, "Hey let's show what 1 means. These 1st graders doesn't understand what 1 means. Here's 1 apple, and here's another apple. 1+1. We've shown it. Then we're golden.
    That's what seems to be invisible, but is not. Is it? Of course the idea is invisible. 1 does not designate 1 apple. Clearly 1, as a concept/idea, is invisible. 1 is "1 of a unit". But a unit could be anything. How do you really define a unit? Not all units are physical objects. And if they aren't physical, you cannot show it, on a physical level.
    So, that's a little bit about what I mean by the invisible.
    ~ Love, as invisible ~
    You can show love to someone. You can hug them. But you can still show things, in a physical way, when the idea/thing, love, is still invisible. Love is an emotion. Emotions are invisible. You can draw it, and symbolise an emotion. But is never truly what the emotion IS. You can show something invisible by representation. As a concept, the idea is still invisible.
    How do you explain things that are invisible to someone? Like love. Really? I've no idea. I'm sure someone far smarter and knowledgeable would though.
    The emotion is in the neuroscience of our "mind". So until neuroscience, as a scholarly field, advances where they can show in the brain via an MR or whatever machine/device they use. Then they can show emotions. Or maybe they cannot, and emotions are more complicated than that. And they would need to explain how an emotion like love works via no more than mere words.
    I'm sure there's a more academic word for the "the invisible", in this linguistic sense. Not sure what field of study, or more likely, what fields of study, this would be categorised under. Categorised wrongly, obviously, as that's how all categories/genres are.
    But I'll run across it one day.
    ~ What I say again? ~
    So what did I say again? When learning anything (that isn't invisible), we don't need to know awkward, confusing, and strange words. That do not mean anything, in and of itself.
    So these words.
    First of all, why do we need words? To communicate with one another. But I said we don't need words when talking about things that aren't invisible. You may ask, "Well then, how can we communicate with one another without words?"
    Images. Moving images. Like video.
    A little bit of words, when necessary, help though.
    So let's rephrase. We don't need complicated words. That doesn't mean anything.
    Nonverbal communication accounts for safely 90% of the message.
    How poorly designed text, as a communication medium, really is. We need to understand that.
    ~ Origins Of Stuff & Histories ~
    If it's so bad, why do we use words, on topics that video can do far better?
    Like much of what is wrong with the world, they stem from the outdated past. During a time period where that was the best option, and the best invention, humanity could make -- for the times -- for the times, I repeat.
    ~ The Video Age ~
    Today, we live in a video-dominated age. When did video first start? Recently when the Web became more developed? Of course not, they had films back then if you really think about it.
    ~ Teachers: People That Speak Words ~
    So teachers are like a video, only worst due to less flexibility in what you can do (if they were a software, they lack of many features)
    But better in the way that they can give immediate feedback. That two-way system that video (premade videos only) doesn't have. Live video is an example of videos that aren't premade. Combining video with a live person is another example. I'm sure there are more.
    But teachers are basing their teaching on the textbook, and little to none from their own base of knowledge, and any of that base of knowledge would've been from textbooks anyway.
    ~ The Video Age ~
    If video is really so good, we doesn't everyone use it??
    You know what? They do. The proportionally few good ones that is. You haven't gotten around? Live in that caveman's cave?
    ~ Pixels ~
    Pixels, that topic, is a great example of how clearly video is the best medium ever to show. We don't need representation of words to confuse and clutter the physical objects that these digital objects and button are.
    Video is the best medium, at this current point in time, to teach/show anything related to pixels. This could be photoshop, or whatever.
    ~ Results ~
    So we live in this world where we now have video. But so much of society is outdated. With outdated practises.
    I hate words when we don't need them When there is better mediums to communicate 100x more effectively than words ever could.
    You fail to see how significant 100x really is. How many orders of a magnitude is that anyway? I don't know. I don't know enough.
    You also fail to see how much of what was said is about invisible, highly abstract, things/ideas. And some things aren't. So which ones were the things I could've shown far better in video, or maybe everything could've expressed better on video?
    Video = moving images + still images like diagrams, slides with charts & infographics + sounds (like music, etc.) + maybe words +
    ~ Ends ~
    Look, the point is that words are bad in so many ways. SO. MANY. WAYS. I shouldn't have to say it any more than once if you actually knew how to learn. I shouldn't have to say it -- at all -- if you knew at this moment how to learn. And you need to understand that. That words are bad in SO MANY WAYS. And to stop using them. Especially when you're trying to teach (or give answers, solutions, etc.)
    Words are easier, sometimes, though. So that could be why I'm using it.
    I'm not using complicated words though. And this was about complicated, strange, and meaningless words. So get that straight.
    ==
    {1st Draft} -- out there in the vast Web.
    None of these ideas in this is new. Visit the higher end of the Web for once.

  • I want to make a web page using labview.

    I want to make a web page using labview. I have the internet tool kit. Where do I start. Till now all I have used labview is for industrial I/O and mmi. I have used various TCP UDP comms for network purposes, but I haven't ever done anything with Web page design.

    The internet toolkit has some functions for generating and manipulating HTML, but it isn't really intended as a Web page authoring tool. I personally wouldn't use it for such a purpose, and I've done a good bit of Web programming in various different environments, including LabVIEW.
    The true power of the internet toolkit lies in its ability to create LabVIEW VIs to handle CGI requests, the way that perl or PHP might be used in more traditional Web development. In the old days, this was really the only way to provide Web interactivity with LabVIEW on the back end. Here is a document that outlines how to start up the toolkit's Web server and check out the CGI examples that ship with LabVIEW. This is the best jumping-off point for creating your own pages, if you are planning to use the CGI functionality in the internet toolkit. Just examine how the HTML pages and the CGI VIs in the examples work together and begin to try out your own VIs.
    Since LabVIEW 6i, LabVIEW has shipped with Remote Panel functionality that allows you to publish any LabVIEW VI in a Web browser without the burden of creating special CGI functionality. Furthermore, users can fully interact with the VI--buttons, graphs, string controls, etc. That's really a better solution if you want to make VIs available via the Web and aren't so much interested in CGI/transactional behavior. Check this out by choosing Tools >> Web Publishing Tool from LabVIEW.
    I hope this info gives you some ideas about starting points for Web functionality in LabVIEW. Please follow up if you have more specific questions.
    Best Regards,
    John

  • Trying to make a graph that actually works

    I’m trying to make a graph for my boss that displays
    the number of tickets each staff member have completed.
    I found this tutorial:
    http://www.flashkit.com/tutorials/Dynamic_Content/Creating-Zoubin_Z-61/index.php
    However when I finished it, I wanted to create a dynamic text
    box that would display the value for each graph when it said that
    the code used was written in Flash 4, so it can’t do that. :(
    So I started rebuilding the tutorial in flash 9 but then
    realized that the old code wouldn’t work with the new
    version!! ARGH!!
    So basically I’m a bit stuck.
    I’m a beginner to intermediate flash user. But
    don’t have much knowledge of the coding side of things.
    The main part I need converted is this:
    quote:
    Set Variable: "a"=1
    Loop While (A<29)
    Set Variable: "bar"&a = Random (100)
    Set Variable: "a" = a+1
    End Loop
    Set Variable: "a"=1
    Loop While (a<29)
    Begin Tell Target ("var"&a)
    Goto and Stop (Eval("_level0/:bar"&../:a))
    End Tell Target
    Set Variable: "a" = a+1
    End Loop
    Which was written for version 4, but needs to work with the
    latest which is 9 (?).
    All I know so far is that, the Set Variable, has been
    replaced with LoadVariable for the new version. Is that right?
    I’ve been stressing over this for hours last night and
    this morning, trying all different methods from forums and tutorial
    sites, but nothing is working. So as a last resort I’m
    reaching out for help from the experts.
    Thanks in advance!!

    I've been messing with your graph all day and I'm having a
    lot of fun just playing with the code
    It's nice to see some code made especially for this purpose.
    Really clears things up.
    So thanks again clbeech!
    If you don't mind, I've got 3 more questions, if you've got
    the spare time to look:
    Screenshot
    of what I've done so far
    Here is the
    modified action script:
    quote:
    stop();
    var chartScale = 300; //max scale number
    var xml = new XML();
    xml.ignoreWhite=true;
    xml.onLoad = function() {
    date_txt.text = updated;
    var xpos =graph._width /
    (this.firstChild.childNodes.length+1);
    for(var i=0; i<this.firstChild.childNodes.length; i++) {
    graph.attachMovie('bar','bar'+i, i, {_y:xpos*(i+0),
    _x:100});
    graph['bar'+i].name_txt.text = this.firstChild.childNodes
    .attributes.staff;
    graph['bar'+i].num_txt.text =
    this.firstChild.childNodes.attributes.tickets;
    graph['bar'+i].imp_txt.text = this.firstChild.childNodes
    .attributes.improvement;
    var pct =
    Number(this.firstChild.childNodes.attributes.tickets) /
    chartScale * 200;
    graph['bar'+i].bar_bg._yscale = pct;
    xml.load('graphData.xml');
    And this is the
    modified XML data:
    quote:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <graphdata>
    <data staff="david" tickets="300" improvement="12"/>
    <data staff="trent" tickets="267" improvement="9"/>
    <data staff="andrew" tickets="250" improvement="14"/>
    <data staff="nathan" tickets="2" improvement="22"/>
    <data staff="matt" tickets="274" improvement="2"/>
    </graphdata>
    <data date="9th June 2008"/>
    1.
    In the top right hand corner of the screenshot, you'll see
    there is a "Last Updated" static text box followed by a dynamic
    text box called "date_txt". But I wasn't sure where to put the
    code, in the XML file! If I put it between the <graphdata>
    tags then it creates a new graph bar called "UNDEFINED" lol
    Do I create a new tag called 'datedata' or something and put
    it in there? I tried various methods but none of which worked. Any
    idea how to make that work?
    I googled and found this page:
    Webby
    But it seems to write the code in a completely different way to
    you. Also their method doesn't work.
    2.
    Is it at all possible to make the graphs sort themselves and
    arrange from highest to lowest according to the ticket value?
    3.
    How difficult would it be to animate the graphs?? So that
    when you open the flash file, the bars go zooming across and stop
    at the right value?
    I'd imagine it'd be a fair amount of work. But I thought I'd
    ask anyway.
    Thanks showing me the ways guys!
    I'm learning a lot.

  • How can I make a graph using Xcode?

    Hi,
    I'd like to make a graph using Xcode 3.2.5 on an iMac 2009 with Mac OS X 10.6.7. I'm reading temperatures through the serial port (using an USB-serial cable) and I want to show how the temperature increases or decreases along the time. Can anyone help me?
    Thanks.

    history of this question is found here!
    Message Edited by GerdW on 11-26-2007 04:09 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How can I make waveform graph and/or excel file with two different dynamic DBL values?

    As the question describes, I have two dbl sources from a load cell and linear actuator (from firgelli). I want to make a load/displacement curve from the force readings from the load cell and the displacement readings from the linear actuator. The load cell outputs an analog signal that can be acquired by a DAQ and the actuator comes in with a board and VI program to control the speed and measure the displacement of the actuator to a sample rate of my choosing. Is there a way that I can make a VI where it continues to collect data and construct the graph I'm looking for?
    Solved!
    Go to Solution.

    A couple points about your application:
    1.  Synchronization.  Since you're ultimate goal is a stress/strain curve, it is vital that your force and displacement data be synchronized appropriately.  If your sampling is beyond a few times a second, this is not really possible without some form of hardware synchronization via either a trigger and/or sample clock.  Two NI DAQ boards can be synchronized this way easily, but it seems you're using 3rd party hardware for one of these processes.  Would need to know more about that board to know what options you have.  You could specify what your resolution is in distance, and how fast the article will be moving, to get an idea of how fast to acquire, and how well you'll need to synchronize the data.  Another option, since it appears each data stream will be sampled on a hardware-timed sample clock, they will be offset in time, but not skewed during the acquisition.  You may be able to identify a feature in the data set common to each and use that to remove the timing offset after the process is completed.
    2.  Display.  To display data during the acquisition process, I usually recommend at least one display that plots vs. time.  Much easier to spot irregularities with the acquisition process that way.  However, if you'd like to also plot force vs. displacement, you can use an XY Graph to plot parametrically. For Example, in your case you would use the Displacement data as the X coordinates, and the Force data as the Y coordinates.
    3.  Saving data to file.  I would recommend using the Save to Spreadsheet File.vi (File IO pallette) to save your data.  If you use a comma as the delimiter, and save the file with a *.csv extension, you will have a file that is easily read into excel.  The standard tab-delimited spreadsheet file is also fine, it will just require an extra step to read it into excel to specify to excel what the delimiter is.
    4.  Batch vs. Real-Time Recording (Data File).  If your process is short (< 30 sec) you may be better off acquiring the data, Storing it locally to the VI (Array - usually maintained in a shift register), and then writing the file with a header (acquisition parameters, test article information, data column headers) and the data all at once in batch mode to the file after the process is finished.  If, however, it is longer than that you would be better off starting a data file with a header and appending the data to the file as you go, so that if something happens during your test, you at least have data up to that point.
    Hope this Helps,
    Kurt

  • Greeting,  I want to reformat my external hard drive using Mac OS Extended (Journaled, Encrypted ) but before formatting it, I want to make sure that if I loose the hard drive or the hard drive get stolen, no one will be able to retrieve or recover the in

    Greeting,
    I want to reformat my external hard drive using Mac OS Extended (Journaled, Encrypted ) but before formatting it, I want to make sure that if I loose the hard drive or the hard drive get stolen, no one will be able to retrieve or recover the information on it so could you tell me what kind of encryption will be used or is there any way to recover the information?
    Thanks!

    I think FileVault is used to encryp internal hard drive but I wanna encrypt an external hard drive with Mac OS Extended Journaled Encrypted which is completely different!

  • I want to make a slideshow to view on my television with image's duration ranging from seconds to an hour or more and I want to use my iPhone or iPad mini to control the television through my Apple tv.  I've been unable to locate an app that will do this.

    I want to make a slideshow to view on my television with image's duration ranging from seconds to an hour or more and I want to use my iPhone or iPad mini to control the television through my Apple tv.
    I've been unable to locate an app that will do this.  The Photos app that comes with the phone or iPad has extremely limited duration controls.  PhotoStream seems to load everything from my phone or iPad not allowing me to just load up a set group of images.
    iPhoto for iPad is getting some terrible recent reviews.  I tried a couple other free apps but they don't use Airplay.
    I can do something like this with iPhoto and my MB Air, but it's kind of ugly to have the computer open in order to connect by Airplay to my Apple TV.  I've thought the iPad or iPhone would be a lower profile controller.
    Am I out of luck?

    Thanks for your help.  Since I'm uninterested in loading all my photos (the only option) into photostream, I won't be able to use the settings in ATV.  I guess I'm just stuck with using iPhoto on my MB Air.  Thanks again.
    paul

  • When I turn my computer on I receive a message that Apple wants to make a change to the hardware. I click on yes but nothing happens. I think this has something to do with Apple "push". I had a problem with this in iTunes when I tried to sync my iPod Touc

    When I turn my computer on (Windows 7) I receive a message that Apple wants to make a change to the hardware. I click on yes but nothing happens. The change has something to do with Apple "push". I recently had a problem with"push" on iTunes when I tried to sync my iPod Touch. I have latest software for iTunes and iPod. Can anyone tell me what to do to get this change to install?

    ptford wrote:
    When I turn my computer on (Windows 7) I receive a message that Apple wants to make a change to the hardware
    Since hardware cannot be changed with software, perhaps you would be so kind as to post the exact wording of the message?

  • Want to make my Ipad 4 into a second monitor

    I have an iPad 4 and a macbook pro and I want to connect them and make my ipad a second monitor. I know that I have to download an app but I want to make sure that I get the best/right one.
    I also saw that I can connect my ipad to my computer and control my computer from my ipad, so if anyone has experience with either of these things let me know!

    If you plan on using your iPad as a semi permanent second display when working at your Mac, if you plan to do this for long periods of time, make sure your iPad is plugged into power.
    These remote display apps tend to be more of a drain on the iPad's battery. Especially so if the remote display app uses Bluetooth instead of over WiFi.
    I like and use an app called Air Display.
    For using your iPad as a remote client to run your Mac remotely, there are a few decent apps for thiis, but it depend so what you really want to do.
    I wanted remote control of my Mac, locally, so I use a remote app called SplashTop remote.
    If you need remote location control of your Mac, also, there are other apps for that like LogMeIn and Team Viewer to name a few.

  • Hello and HELP! Over the years I have saved Invoices in my Documents. I have just tried to open them and all I am getting is " cannot be opened, Invoice**** is used by another user, do you want to make a copy?" That's on all my invoices.

    Can someone help please.
    I have just "lost" ( cannot open) all my saved Invoices in the Document folder.  All I am getting is " cannot open, Invoice ** is used bey another user, do you want to make copy? " That doesn't work either. I can't get anything on the time capsule either. How can I reset to an earlier time? Or what can I do?
    Thank you

    Did you recently reinstall the OS then copy all your files back over? Do a Get info on one of the documents and see if your current UserName is listed and has Read & Write permissions. If not select the Documents folder and check that for Read & Write permissions for your UserName. If it doesn't have R & W permissions Add it so it does.

Maybe you are looking for