|
From: Ducret, G. (MSCI) <Gil...@ms...> - 2003-12-12 13:27:32
|
Are you sure the size of the legend labels array is amount_of_rows
-----Original Message-----
From: Campano, Troy [mailto:Tro...@Li...]=20
Sent: Thursday, December 11, 2003 8:46 PM
To: jch...@li...
Subject: [jCharts-users] Problem generating Bar Charts from
Database
=09
=09
Hello,=20
I'm trying to generate a bar graph from a database.
I define my labels and data like this:
=20
String[] xAxisLabels =3D new
String[amount_of_rows];
double[][] data =3D new
double[amount_of_rows][amount_of_rows];
=20
=20
...and I scroll through my JDBC ResultSet like this:
=20
xAxisLabels[i] =3D
rs.getString("engine_vrsn_nme").toLowerCase();
data[i][i] =3D
rs.getDouble("version_count");
=20
=20
...but I get this error:
org.jCharts.chartData.ChartDataException: There is not an one to
one mapping of 'legend labels' to 'data sets'.
=20
=20
=20
=20
=20
Any ideas?
=20
Thank you!
=20
Troy Campano=20
--------------------------------------------------------
=20
NOTICE: If received in error, please destroy and notify sender. Sender =
does not waive confidentiality or privilege, and use is prohibited.=20
=20
|