-1

I have 2 group of data(date format),and I want to use one of them to be the X-axis and another to be the Y-axis,could jfreechart do this?

wyyzaw
  • 51
  • 1
  • 5

1 Answers1

1

Yes simply use a xyseries or TimSeriesCollection

Have a look at this example

http://www.java2s.com/Code/Java/Chart/JFreeChartXYLogAxesDemo.htm

or

http://www.jfree.org/jfreechart/api/javadoc/src-html/org/jfree/chart/demo/TimeSeriesChartDemo1.html

Scary Wombat
  • 44,617
  • 6
  • 35
  • 64