|
From: Campano, T. <Tro...@Li...> - 2003-12-15 17:58:27
|
For some reason I need to reboot my servlet container (tomcat) when I
make this change but I don't need to reboot for all changes.
This is working for me now.
Thank you for all your help!
Troy Campano
-----Original Message-----
From: jch...@li...
[mailto:jch...@li...] On Behalf Of Campano,
Troy
Sent: Thursday, December 11, 2003 3:55 PM
To: Nathaniel G. Auvil
Cc: jCharts - Users
Subject: [jCharts-users] RE: FW: Problem generating Bar Charts from
Database
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/
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for
IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys
admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick
_______________________________________________
jCharts-users mailing list
jCh...@li...
https://lists.sourceforge.net/lists/listinfo/jcharts-users
|