• 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

Want simple X-Y graph, save as JPEG

 
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to create a simple X-Y graph (with axes) with a few line segments, then save it to a JPEG for the IMG SRC in an image tag. Each line on the graph would be a different color. The graph background ("behind the axes") itself might have another image, say for the company the graph is for.

Is there a simple way to do this other than using the Java 2D API?

Looking over the 2D API, it looks like a lot of work would be necessary to do what I want to do.

Thanks very much in advance for any suggestions!

Mike
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're amenable to using a 3rd party API, have a look at JFreeChart or JChart2D. Both are on SourceForge and should be much less hassle than coming up with Java2D code for the same purpose.
 
Mike London
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure, that sounds cool.

Thanks!!!

- Mike
reply
    Bookmark Topic Watch Topic
  • New Topic