Wrox Programmer Forums
|
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 21st, 2006, 03:29 AM
Authorized User
 
Join Date: Jun 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ajit
Default JFreeChart

Hi I want to display that graph using JFreeChart and TimeSeriesCollection. I have ResultSet that had threemonths Nav Value for every date. There are 92 records. I want to add the data into TimeSeries object using add() method of TimeSeries class. Any body tell me about how TimeSeries.add() works?

Then I will add TimeSeries Object to its collection.
I'll cast the TimeSeriesCollection into XDataset

Now I have to generate the graph using JFreeChart using XDataset,
Can anybody please guide me the steps?,

Thanx

Ajit
__________________
Ajit
 
Old June 15th, 2007, 08:10 AM
Authorized User
 
Join Date: Sep 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to vinay.bk
Default

Hi ajit

I suggest u to read through the jfreechart api to exactly know how to do it. When u use jfrechart u need to bother about plotting values on the chart since it is taken care.The only thing u need to is to pass the values to help it plot.Ther are all kinds of graphs including 3dGraphs so just go through the api select the appropriate methods and pass the values.Normally it takes values in the form of hastables

Thanks & Regards
     vinay
 
Old October 23rd, 2007, 11:58 PM
Authorized User
 
Join Date: Jun 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ajit
Default

ThanX Vinay

Ajit









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.