Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Graphs support in Java.

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
I want to draw different graphs in my application. Is there any API available for it or any support for it. Please help me how to draw Bar / Line / Pie charts.
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JFreeChart is a free (GNU LGPL) class library for generating charts in Java:
http://www.object-refinery.com/jfreechart/index.html
It includes support for bar charts (regular, stacked, 3D effect), pie charts, line charts, scatter plots, time series charts, candle stick plots, high-low-open-close and more.
JFreeChart has been successfully used in applications, servlets and applets. Give it a try!
Regards,
Dave Gilbert
www.object-refinery.com
 
Aphsal Viking
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Dave . Actually I want to display my graphs in Applet and I am deploying my final site (which is in ASP) on a shared server. Can I still use it ?
 
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
"Viking" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

Thanks! and welcome to the JavaRanch!

-Nate
 
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am also looking for an answer o this..I would like to use the graph capabilities into servlets..but usig this free API means settings of server for this AGAIN..too much of work and costs involved(as I have to pay for getting my server settled like this)..
Is their no API in built in JDK which can be used for same.
regards
Arun
 
Ranch Hand
Posts: 1170
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might want to search on sourceforge.net for a java Graph application.
 
David Gilbert
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Viking:
Thanks Dave . Actually I want to display my graphs in Applet and I am deploying my final site (which is in ASP) on a shared server. Can I still use it ?


You can use JFreeChart in an applet. It requires Java 2, so some browsers may not like it. Mozilla works great for me. Try out the Markov Queue Simulation that Lev Givon has posted--it uses JFreeChart:
Markov Queue Simulation
Regards,
Dave Gilbert
www.object-refinery.com
 
And then the entire population worshiped me like unto a god. Well, me and this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic