From: Nathaniel G. A. <nat...@ya...> - 2003-12-11 20:49:14
|
I don't think your code is correct. Are you sure you want 'amount_of_rows' for each dimension of the data array? --- "Campano, Troy" <Tro...@Li...> wrote: > Is this the correct mailing list? > > When I send to it I never get an email from the list? > > > > Thank you! > > > > Troy Campano > > > > -----Original Message----- > From: Campano, Troy > Sent: Thursday, December 11, 2003 2:46 PM > To: 'jch...@li...' > Subject: Problem generating Bar Charts from Database > > > > Hello, > > I'm trying to generate a bar graph from a database. > > I define my labels and data like this: > > > > String[] xAxisLabels = new String[amount_of_rows]; > > double[][] data = new > double[amount_of_rows][amount_of_rows]; > > > > > > ...and I scroll through my JDBC ResultSet like this: > > > > xAxisLabels[i] = > rs.getString("engine_vrsn_nme").toLowerCase(); > > data[i][i] = > rs.getDouble("version_count"); > > > > > > ...but I get this error: > > org.jCharts.chartData.ChartDataException: There is not an one to one > mapping of 'legend labels' to 'data sets'. > > > > > > > > > > > > Any ideas? > > > > Thank you! > > > > Troy Campano > > > > > > __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ |