From: Campano, T. <Tro...@Li...> - 2003-12-11 20:55:31
|
I was able to find out my problem, however this is my new problem. My Y-Axis is incrementing by 100. My highest data element only goes to 24. So I tried: try { dataAxisProperties.setUserDefinedScale( 0, 50 ); } catch( PropertyException propertyException ) { propertyException.printStackTrace(); } But It still goes 0, 100, 200, 300, 400. When I remove the code, it still does the same thing. Any Ideas? Thank you, once again. Troy Campano -----Original Message----- From: Nathaniel G. Auvil [mailto:nat...@ya...]=20 Sent: Thursday, December 11, 2003 3:31 PM To: Campano, Troy Cc: jCharts - Users Subject: Re: FW: Problem generating Bar Charts from Database 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? >=20 > When I send to it I never get an email from the list? >=20 > =20 >=20 > Thank you! >=20 > =20 >=20 > Troy Campano=20 > =20 > =20 >=20 > -----Original Message----- > From: Campano, Troy=20 > Sent: Thursday, December 11, 2003 2:46 PM > To: 'jch...@li...' > Subject: Problem generating Bar Charts from Database >=20 > =20 >=20 > Hello,=20 >=20 > I'm trying to generate a bar graph from a database. >=20 > I define my labels and data like this: >=20 > =20 >=20 > String[] xAxisLabels =3D new String[amount_of_rows]; >=20 > double[][] data =3D new > double[amount_of_rows][amount_of_rows]; >=20 > =20 >=20 > =20 >=20 > ...and I scroll through my JDBC ResultSet like this: >=20 > =20 >=20 > xAxisLabels[i] =3D > rs.getString("engine_vrsn_nme").toLowerCase(); >=20 > data[i][i] =3D > rs.getDouble("version_count"); >=20 > =20 >=20 > =20 >=20 > ...but I get this error: >=20 > org.jCharts.chartData.ChartDataException: There is not an one to one > mapping of 'legend labels' to 'data sets'. >=20 > =20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > =20 >=20 > Any ideas? >=20 > =20 >=20 > Thank you! >=20 > =20 >=20 > Troy Campano >=20 > =20 >=20 > =20 >=20 >=20 __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ |