drawing chart with values from database

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
srikanth

drawing chart with values from database

Post by srikanth » Wed Aug 30, 2000 8:25 am

how could i bring the values for chart from database instead of giving it in the program
please help me to solve this problem as it is very urgent
srikanth

Rawat Subodh Kumar

RE: drawing chart with values from database

Post by Rawat Subodh Kumar » Thu Aug 31, 2000 8:57 am

You may have to use java.sql.* package. Make a result set of your database values. Initialize the multi dimension array and fill the array. Pass the array to datasourceobject of JFreeChart.

Subodh

srikanth

RE: drawing chart with values from database

Post by srikanth » Thu Aug 31, 2000 11:19 am

i've made the multidimensional array of database values and also used sql packageand passed the array to the datasourceobject.i'm able to compile it correctly but during running nullpointer exception is coming.how could i solve this?

Post Reply