• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

creating graph using Applet

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have to create graph with Excel data. for this i hope Applet is the right one to do, but i don't know how to do it, if any one know how to create a graph using the data in the database, please help me to do this.
thanks to all if u consider my request
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

"venu_74"
your name doesn't agree with the javaranch guidelines.
please take a moment and re-register yourself after
selecting a valid name following the guidelines at http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To create an applet to graph with Excel data is a big task, because it involves so many things.

  • Getting the data out of the Excel file. This would be done via JDBC.
  • Graphing the data. This is easier. Once you get the data out of the Excel file, you'll simply need to iterate through the entire dataset drawing lines between each point if you want a line graph, or drawing filled arc if you want a pie chart. This would be done in the paint() method of the applet.
  • The applet part. Several issues related to this... Is the Excel file on the server or on the client's machine? If it is on the client's machine, you will have to have a signed applet, capability classes, or some other procedure to break out of the applet 'sandbox'. Plus, I'm not sure how JDBC & applets get along... I know it can be done, but I don't know if it requires extra measures to work...


  • Just some thoughts...

    HTH,
    -Nate
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic