From: Nathaniel G. A. <nat...@ya...> - 2003-12-11 23:00:05
|
what is your rounding factor set to? --- "Campano, Troy" <Tro...@Li...> wrote: > 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...] > 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? > > > > 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/ __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ |